Difference between revisions of "Compiling ScummVM/MinGW"

Jump to navigation Jump to search
→‎libmpeg2: Fix libmpeg2 patch.
(Remove mingw-w64, it is a completely different and unofficial tool chain.)
(→‎libmpeg2: Fix libmpeg2 patch.)
Line 237: Line 237:
       * We need to use SetWindowLongPtr when it is available in mingw */
       * We need to use SetWindowLongPtr when it is available in mingw */
-    SetWindowLong (instance->window, GWL_USERDATA, (LONG) instance);
-    SetWindowLong (instance->window, GWL_USERDATA, (LONG) instance);
+    SetWindowLongPtr (instance->window, GWLP_USERDATA, (LONG) instance);
+    SetWindowLongPtr (instance->window, GWLP_USERDATA, (LONG_PTR) instance);
   
   
     ShowWindow (instance->window, SW_SHOW);
     ShowWindow (instance->window, SW_SHOW);
561

edits

Navigation menu