]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Video.cc
simplified win32 installer build script
[chaz/yoink] / src / Moof / Video.cc
index eeec47e7eb7d4dcc00b4a6b17fd732f8e61fc93a..e4579fbc700951215a32b0669a2602c5b7f62fbf 100644 (file)
 
 *******************************************************************************/
 
-#include <SDL/SDL_image.h>
-
 #include "Dispatch.hh"
 #include "Engine.hh"
 #include "Exception.hh"
+#include "Image.hh"
 #include "Log.hh"
 #include "Settings.hh"
 #include "Video.hh"
@@ -173,12 +172,8 @@ void Video::setIcon()
 {
        if (mAttribs.icon != "")
        {
-               SDL_Surface* icon = IMG_Load(mAttribs.icon.c_str());
-               if (icon)
-               {
-                       SDL_WM_SetIcon(icon, 0);
-                       SDL_FreeSurface(icon);
-               }
+               Image icon(mAttribs.icon);
+               icon.setAsIcon();
        }
 }
 
This page took 0.016423 seconds and 4 git commands to generate.