Revision: 3718
http://sc2.svn.sourceforge.net/sc2/?rev=3718&view=rev
Author: avolkov
Date: 2011-12-29 15:00:32 +0000 (Thu, 29 Dec 2011)
Log Message:
-----------
Still no mid-block variable declaration in VC6. No matter how hard you try, VC6 just won't accept it! :P
Modified Paths:
--------------
trunk/sc2/src/libs/graphics/context.c
Modified: trunk/sc2/src/libs/graphics/context.c
===================================================================
--- trunk/sc2/src/libs/graphics/context.c 2011-12-28 20:24:21 UTC (rev 3717)
+++ trunk/sc2/src/libs/graphics/context.c 2011-12-29 15:00:32 UTC (rev 3718)
@@ -123,6 +123,8 @@
BOOLEAN
DestroyContext (CONTEXT ContextRef)
{
+ TFB_Image *img;
+
if (ContextRef == 0)
return (FALSE);
@@ -139,7 +141,7 @@
}
#endif /* DEBUG */
- TFB_Image *img = ContextRef->FontBacking;
+ img = ContextRef->FontBacking;
if (img)
TFB_DrawImage_Delete (img);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|