fix build on MSVC
authorTony Cook <tony@develop-help.com>
Tue, 22 Nov 2011 08:56:00 +0000 (19:56 +1100)
committerTony Cook <tony@develop-help.com>
Tue, 22 Nov 2011 08:56:00 +0000 (19:56 +1100)
Changes
scwin32.c

diff --git a/Changes b/Changes
index 9a3fd20..657d4ad 100755 (executable)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,11 @@
+0.011 unreleased
+
+- transition to git
+
+- allow builds on MSVC, there was a statement mixed in with some
+  declarations.
+  Thanks to Sri Vedurumudi for the report.
+
 0.010 18 Oct 2010
 
 - multiple monitor support for Win32
index 20103d5..b091906 100644 (file)
--- a/scwin32.c
+++ b/scwin32.c
@@ -152,11 +152,11 @@ imss_win32(unsigned hwnd_u, int include_decor, int left, int top,
     }
     else {
       DISPLAY_DEVICE dd;
-      dd.cb = sizeof(dd);
       int work_display = 0;
       int primary_display = -1;
       int real_display = -1;
 
+      dd.cb = sizeof(dd);
       /* look for the primary display, we need a simulate a gap to put the
         primary at 0 */
       while (work_display < 100