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 9a3fd2098e694e8e6586e61feea3f27beaedf428..657d4ad5198f28dde3ccae12a09d25ed41aec35a 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 20103d505366c6edffb2ebd3d0bd904409d710fa..b091906305fa4e92655db1b9da98a38fd8119223 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