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
This commit is contained in:
Meep-Eep
2007-05-08 23:16:52 +00:00
parent dc94da2cc4
commit 73b5557acc
+2 -1
View File
@@ -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);