mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-08 03:41:52 +08:00
disable set the pixels to 0 for a new RGB surface
This commit is contained in:
@@ -160,7 +160,7 @@ GAL_Surface * GAL_CreateRGBSurface (Uint32 flags,
|
||||
return(NULL);
|
||||
}
|
||||
/* This is important for bitmaps */
|
||||
memset(surface->pixels, 0, surface->h*surface->pitch);
|
||||
//memset(surface->pixels, 0, surface->h*surface->pitch);
|
||||
surface->flags &= ~GAL_HWSURFACE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user