1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-25 17:08:26 +02:00

move sdl surface unlock behing getpixel fct

Signed-off-by: Mirko Lindner <mirko@sharism.cc>
This commit is contained in:
Mirko Lindner 2010-02-15 21:55:20 +01:00
parent d460849575
commit 630fdd5de9

View File

@ -108,7 +108,6 @@ cout << "check 2" << endl;
}
}
cout << "check 4" << endl;
SDL_UnlockSurface(surface);
cout << "check 5x" << endl;
Uint32 colKey = getPixel(0,surface->h-1);
cout << "check 5.1" << endl;
@ -128,6 +127,7 @@ cout << "check 2" << endl;
nonKeyFound = getPixel(x+srcrect.x,y+srcrect.y) != colKey;
}
lineHeight = y+1;
SDL_UnlockSurface(surface);
}
void SFontPlus::freeFont() {