From 630fdd5de9bc4c6f601d0aea1b6ccbc22f9d8bdf Mon Sep 17 00:00:00 2001 From: Mirko Lindner Date: Mon, 15 Feb 2010 21:55:20 +0100 Subject: [PATCH] move sdl surface unlock behing getpixel fct Signed-off-by: Mirko Lindner --- src/sfontplus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sfontplus.cpp b/src/sfontplus.cpp index c993afb..edadde4 100644 --- a/src/sfontplus.cpp +++ b/src/sfontplus.cpp @@ -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() {