mirror of
https://github.com/yawut/SDL.git
synced 2026-08-28 03:34:44 -05:00
Fixed crash setting 0 bpp video mode.
This commit is contained in:
@@ -457,6 +457,7 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags)
|
||||
} else {
|
||||
desired_format = SDL_PIXELFORMAT_RGB888;
|
||||
}
|
||||
bpp = SDL_BITSPERPIXEL(desired_format);
|
||||
break;
|
||||
case 8:
|
||||
desired_format = SDL_PIXELFORMAT_INDEX8;
|
||||
|
||||
Reference in New Issue
Block a user