mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 05:06:46 -05:00
Fixed type-punning issue (casting to char* makes GCC strict-aliasing happy).
--HG-- branch : SDL-1.2
This commit is contained in:
@@ -651,7 +651,7 @@ static int DGA_InitHWSurfaces(_THIS, SDL_Surface *screen, Uint8 *base, int size)
|
||||
surfaces.base = screen->pixels;
|
||||
surfaces.size = (unsigned int)((long)base - (long)surfaces.base);
|
||||
surfaces.next = bucket;
|
||||
screen->hwdata = (struct private_hwdata *)&surfaces;
|
||||
screen->hwdata = (struct private_hwdata *)((char*)&surfaces);
|
||||
return(0);
|
||||
}
|
||||
static void DGA_FreeHWSurfaces(_THIS)
|
||||
|
||||
Reference in New Issue
Block a user