]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - vid_sdl.c
fix one C++ compile error. It looks like we have no more wrong declaration of functio...
[xonotic/darkplaces.git] / vid_sdl.c
index 5eba5d05631bce31836ffd2a5c51d6b1d3b64dd6..f72abea1021527172cc6898a02cff498bddd2f1b 100644 (file)
--- a/vid_sdl.c
+++ b/vid_sdl.c
@@ -1810,7 +1810,7 @@ static SDL_Surface *VID_WrapSDL_SetVideoMode(int screenwidth, int screenheight,
 
                        // reallocate with malloc, as this is in tempmempool (do not want)
                        xpm = data;
-                       data = malloc(width * height * 4);
+                       data = (char *) malloc(width * height * 4);
                        memcpy(data, xpm, width * height * 4);
                        Mem_Free(xpm);
                        xpm = NULL;