mirror of
https://github.com/yawut/SDL.git
synced 2026-08-22 00:35:18 -05:00
Add SDL_LoadICO_RW to SDL. Loads best quality icon from *.ico file.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user