Mercurial > sdl-ios-xcode
comparison src/SDL_compat.c @ 2240:eebaa05f8bd9
Fixed crash setting 0 bpp video mode.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 15 Aug 2007 03:18:24 +0000 |
parents | bb67fd5ccfdb |
children | e61ad15a205f |
comparison
equal
deleted
inserted
replaced
2239:31835fd24b2b | 2240:eebaa05f8bd9 |
---|---|
455 if (desktop_format) { | 455 if (desktop_format) { |
456 desired_format = desktop_format; | 456 desired_format = desktop_format; |
457 } else { | 457 } else { |
458 desired_format = SDL_PIXELFORMAT_RGB888; | 458 desired_format = SDL_PIXELFORMAT_RGB888; |
459 } | 459 } |
460 bpp = SDL_BITSPERPIXEL(desired_format); | |
460 break; | 461 break; |
461 case 8: | 462 case 8: |
462 desired_format = SDL_PIXELFORMAT_INDEX8; | 463 desired_format = SDL_PIXELFORMAT_INDEX8; |
463 break; | 464 break; |
464 case 15: | 465 case 15: |