mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 05:06:46 -05:00
We explicitly don't know how to handle 1 and 4 bpp pixel formats.
This commit is contained in:
@@ -241,6 +241,10 @@ SDL_MasksToPixelFormatEnum(int bpp, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask,
|
||||
Uint32 Amask)
|
||||
{
|
||||
switch (bpp) {
|
||||
case 1:
|
||||
case 4:
|
||||
/* Can't tell if this is LSB or MSB bitmap ordering... */
|
||||
break;
|
||||
case 8:
|
||||
if (Rmask == 0) {
|
||||
return SDL_PIXELFORMAT_INDEX8;
|
||||
|
||||
Reference in New Issue
Block a user