From eabc641b5a2f0a85b5c49a6eb07df76e87b11ae8 Mon Sep 17 00:00:00 2001 From: mcmartin Date: Mon, 5 May 2003 00:24:00 +0000 Subject: [PATCH] BuildFontEffect fix for #338 (FRAMEs from fonts don't have parent Drawables) git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@945 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/graphics/sdl/3do_getbody.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sc2/src/sc2code/libs/graphics/sdl/3do_getbody.c b/sc2/src/sc2code/libs/graphics/sdl/3do_getbody.c index f1ed32329..b5225c7c9 100644 --- a/sc2/src/sc2code/libs/graphics/sdl/3do_getbody.c +++ b/sc2/src/sc2code/libs/graphics/sdl/3do_getbody.c @@ -293,7 +293,6 @@ void getpixelarray(Uint32 *map, FRAMEPTR FramePtr, int width, int height) FRAMEPTR Build_Font_Effect (FRAMEPTR FramePtr, Uint32 from, Uint32 to, BYTE type) { - UBYTE FrameType; FRAMEPTR NewFrame; int x, y; int width, height; @@ -307,10 +306,7 @@ FRAMEPTR Build_Font_Effect (FRAMEPTR FramePtr, Uint32 from, Uint32 to, BYTE type width = GetFrameWidth (FramePtr); height = GetFrameHeight (FramePtr); - FrameType = (UBYTE)TYPE_GET (GetFrameParentDrawable (FramePtr) - ->FlagsAndIndex) >> FTYPE_SHIFT; - NewFrame = CaptureDrawable ( - CreateDrawable (FrameType, (SIZE)width, (SIZE)height, 1)); + NewFrame = CaptureDrawable (CreateDrawable (RAM_DRAWABLE, (SIZE)width, (SIZE)height, 1)); tfbOrigImg = FramePtr->image; OrigImg = (SDL_Surface *)tfbOrigImg->NormalImg; SDL_LockSurface (OrigImg);