[gimp] plug-ins: fixing various compilation warnings.



commit e357e7118ce106092fc575afe89a4c6b246fa831
Author: Jehan <jehan girinstud io>
Date:   Tue May 15 23:50:10 2018 +0200

    plug-ins: fixing various compilation warnings.
    
    Mostly warnings about wrong types for some function parameters.
    There is still a single warning remaining about ignoring the #pragma
    macro, but I am not sure what to do about this warning. Apparently it is
    something specifically for use with Visual Studio. We don't need this,
    but since the contributor uses it, let's keep it.

 plug-ins/screenshot/screenshot-win32.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plug-ins/screenshot/screenshot-win32.c b/plug-ins/screenshot/screenshot-win32.c
index b02cfe7..dcf8639 100644
--- a/plug-ins/screenshot/screenshot-win32.c
+++ b/plug-ins/screenshot/screenshot-win32.c
@@ -683,7 +683,7 @@ doCaptureMagnificationAPI (HWND selectedHwnd,
     }
 
     /* Get the screens rects */
-    EnumDisplayMonitors (NULL, NULL, doCaptureMagnificationAPI_MonitorEnumProc, NULL);
+    EnumDisplayMonitors (NULL, NULL, doCaptureMagnificationAPI_MonitorEnumProc, 0);
 
 
     /* If for some reason the array size is 0 then we fill it with the desktop rect */
@@ -723,7 +723,7 @@ doCaptureMagnificationAPI (HWND selectedHwnd,
 
   /* Create the host window that will store the mag child window */
   hwndHost = CreateWindowEx (0x08000000 | 0x080000 | 0x80 | 0x20, APP_NAME, NULL, 0x80000000,
-                             NULL, NULL, NULL, NULL, NULL, NULL, GetModuleHandle (NULL), NULL);
+                             0, 0, 0, 0, NULL, NULL, GetModuleHandle (NULL), NULL);
 
   if (!hwndHost)
     {
@@ -736,7 +736,7 @@ doCaptureMagnificationAPI (HWND selectedHwnd,
   /* Create the mag child window inside the host window */
   hwndMag = CreateWindow (WC_MAGNIFIER, TEXT ("MagnifierWindow"),
                           WS_CHILD /*| MS_SHOWMAGNIFIEDCURSOR*/  /*| WS_VISIBLE*/,
-                          NULL, NULL, rect.right - rect.left, rect.bottom - rect.top,
+                          0, 0, rect.right - rect.left, rect.bottom - rect.top,
                           hwndHost, NULL, GetModuleHandle (NULL), NULL);
 
   /* Set the callback function that will be called by the api to get the pixels */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]