mirror of
https://github.com/yawut/SDL.git
synced 2026-04-24 23:37:09 -05:00
Fixed crash setting 0 bpp video mode.
This commit is contained in:
parent
0c2f549390
commit
74a291769a
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user