Fixed compile problems

This commit is contained in:
Elias Naur 2004-04-04 08:36:55 +00:00
parent 42741ea819
commit 8e6568d3d6
1 changed files with 3 additions and 2 deletions

View File

@ -69,7 +69,7 @@ static int current_width;
static bool input_released;
static bool isUndecorated;
static bool focused;
static bool dirty;
static bool vsync_enabled;
static bool minimized;
static bool focused;
@ -293,7 +293,7 @@ static void releaseContext(void) {
}
int convertToBPE(int bpp) {
int bpe = 4;
int bpe;
switch (bpp) {
case 32:
case 24:
@ -301,6 +301,7 @@ int convertToBPE(int bpp) {
break;
case 16: /* Fall through */
default:
bpe = 4;
break;
}
return bpe;