From 77f58e0b265792844c99ee0fdec7a135c99fb89d Mon Sep 17 00:00:00 2001 From: gewlitys Date: Fri, 14 Feb 2003 23:18:48 +0000 Subject: [PATCH] removed some redundant code which should not be there, fixed one warning git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@751 8092fc87-c524-0410-9efc-e669fe64eaf9 --- .../sc2code/libs/graphics/sdl/sdl_common.c | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/sc2/src/sc2code/libs/graphics/sdl/sdl_common.c b/sc2/src/sc2code/libs/graphics/sdl/sdl_common.c index 3d1c65acb..9df613ef3 100644 --- a/sc2/src/sc2code/libs/graphics/sdl/sdl_common.c +++ b/sc2/src/sc2code/libs/graphics/sdl/sdl_common.c @@ -275,29 +275,6 @@ void TFB_BlitSurface (SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, dst_getpix = getpixel_for (dst); putpix = putpixel_for (dst); - if (SDL_MUSTLOCK(src)) - { - if (SDL_LockSurface (src) == -1) - { - printf("Couldn't lock src!\n"); - } - else - { - printf("Locked src.\n"); - } - } - if (SDL_MUSTLOCK(dst)) - { - if (SDL_LockSurface (dst) == -1) - { - printf("Couldn't lock dst!\n"); - } - else - { - printf("Locked dst.\n"); - } - } - if (blend_denom < 0) { // additive blit: dst = src + dst @@ -408,14 +385,6 @@ void TFB_BlitSurface (SDL_Surface *src, SDL_Rect *srcrect, SDL_Surface *dst, } } } - if (SDL_MUSTLOCK(dst)) - { - SDL_UnlockSurface (dst); - } - if (SDL_MUSTLOCK(src)) - { - SDL_UnlockSurface (src); - } } void @@ -443,7 +412,6 @@ TFB_ComputeFPS () void TFB_FlushGraphics () // Only call from main thread!! { - int semval; int commands_handled; BOOLEAN livelock_deterrence; BOOLEAN done;