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

Commit

Permalink
Set the error so someone can get more information
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 22, 2009
1 parent 684da96 commit 5e88937
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/SDL_pixels.c
Expand Up @@ -103,7 +103,7 @@ SDL_PixelFormatEnumToMasks(Uint32 format, int *bpp, Uint32 * Rmask,
masks[3] = 0x00000003;
break;
default:
/* Unknown layout */
SDL_SetError("Unknown pixel format");
return SDL_FALSE;
}

Expand Down Expand Up @@ -153,7 +153,7 @@ SDL_PixelFormatEnumToMasks(Uint32 format, int *bpp, Uint32 * Rmask,
*Rmask = masks[3];
break;
default:
/* Unknown order */
SDL_SetError("Unknown pixel format");
return SDL_FALSE;
}
return SDL_TRUE;
Expand Down

0 comments on commit 5e88937

Please sign in to comment.