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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user