Add SDL_LoadICO_RW to SDL. Loads best quality icon from *.ico file.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403486
This commit is contained in:
parent
2cd9219893
commit
4bb83c1f39
2 changed files with 288 additions and 0 deletions
|
@ -157,6 +157,12 @@ extern DECLSPEC void SDLCALL SDL_UnlockSurface(SDL_Surface * surface);
|
|||
extern DECLSPEC SDL_Surface *SDLCALL SDL_LoadBMP_RW(SDL_RWops * src,
|
||||
int freesrc);
|
||||
|
||||
/*
|
||||
* Load Icon best quality icon from ICO file and return as RGBA surface
|
||||
*/
|
||||
extern DECLSPEC SDL_Surface *SDLCALL SDL_LoadICO_RW(SDL_RWops * src,
|
||||
int freesrc);
|
||||
|
||||
/* Convenience macro -- load a surface from a file */
|
||||
#define SDL_LoadBMP(file) SDL_LoadBMP_RW(SDL_RWFromFile(file, "rb"), 1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue