From 73b5557accc5413343307be3be3befcbd0eabacd Mon Sep 17 00:00:00 2001 From: Meep-Eep Date: Tue, 8 May 2007 23:16:52 +0000 Subject: [PATCH] Move declaration to the start of the block. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2753 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/flash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sc2/src/sc2code/flash.c b/sc2/src/sc2code/flash.c index f27537491..fa1fd0e8a 100644 --- a/sc2/src/sc2code/flash.c +++ b/sc2/src/sc2code/flash.c @@ -450,8 +450,9 @@ Flash_grabOriginal (FlashContext *context) if (context->parent == 0) { // Grab from the entire screen + CONTEXT oldGfxContext; LockMutex (GraphicsLock); - CONTEXT oldGfxContext = SetContext (context->gfxContext); + oldGfxContext = SetContext (context->gfxContext); context->original = CaptureDrawable (LoadDisplayPixmap ( &context->rect, (FRAME) 0)); SetContext (oldGfxContext);