Set the error so someone can get more information
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404225
This commit is contained in:
parent
263c9febad
commit
45a366faf7
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@ SDL_PixelFormatEnumToMasks(Uint32 format, int *bpp, Uint32 * Rmask,
|
||||||
masks[3] = 0x00000003;
|
masks[3] = 0x00000003;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* Unknown layout */
|
SDL_SetError("Unknown pixel format");
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ SDL_PixelFormatEnumToMasks(Uint32 format, int *bpp, Uint32 * Rmask,
|
||||||
*Rmask = masks[3];
|
*Rmask = masks[3];
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* Unknown order */
|
SDL_SetError("Unknown pixel format");
|
||||||
return SDL_FALSE;
|
return SDL_FALSE;
|
||||||
}
|
}
|
||||||
return SDL_TRUE;
|
return SDL_TRUE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue