]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_sdl.c
reworked makefile a little bit to support DX9 renderer, add D3D=1 to
[xonotic/darkplaces.git] / vid_sdl.c
index 4d9153b4f5b9a9c366dac30c11ccd02d9d775676..e751030db90594cec9ec21100bccf92f9111e8c8 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -549,9 +549,19 @@ static void VID_SetIcon(void)
        int thenone = -1;
        static SDL_Color palette[256];
        unsigned short palenc[256]; // store color id by char
-
-       char **idata = ENGINE_ICON;
-       char *data = idata[0];
+       char *xpm;
+       char **idata, *data;
+
+       xpm = (char *) FS_LoadFile("darkplaces-icon.xpm", tempmempool, false, NULL);
+       idata = NULL;
+       if(xpm)
+               idata = XPM_DecodeString(xpm);
+       if(!idata)
+               idata = ENGINE_ICON;
+       if(xpm)
+               Mem_Free(xpm);
+
+       data = idata[0];
 
        if(sscanf(data, "%i %i %i %i", &width, &height, &colors, &isize) != 4)
        {