diff include/SDL_surface.h @ 3024:1a08749aebce

Add SDL_LoadICO_RW to SDL. Loads best quality icon from *.ico file.
author Couriersud <couriersud@arcor.de>
date Sun, 11 Jan 2009 23:56:19 +0000
parents 133601e3b255
children 69ab1117dd3b
line wrap: on
line diff
--- a/include/SDL_surface.h	Sun Jan 11 23:49:23 2009 +0000
+++ b/include/SDL_surface.h	Sun Jan 11 23:56:19 2009 +0000
@@ -157,6 +157,12 @@
 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)