Navigation Menu

Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed crash setting 0 bpp video mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 15, 2007
1 parent b2cd311 commit ecd59a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SDL_compat.c
Expand Up @@ -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;
Expand Down

0 comments on commit ecd59a2

Please sign in to comment.