diff options
author | Lothar Serra Mari <serra@scummvm.org> | 2019-08-12 14:27:03 (GMT) |
---|---|---|
committer | mabrand <mabrand@mabrand.nl> | 2019-08-12 14:27:03 (GMT) |
commit | 9882463e51f91552286cc9e39d64283065e0f85f (patch) | |
tree | a70c86aaa5c8e1ca0f528bdd11d74d22ce9aed98 /src/libmpeg2-1.patch | |
parent | 6d91aad40b20d58644bd9628ce46202ca6947267 (diff) | |
download | mxe-9882463e51f91552286cc9e39d64283065e0f85f.zip mxe-9882463e51f91552286cc9e39d64283065e0f85f.tar.gz mxe-9882463e51f91552286cc9e39d64283065e0f85f.tar.bz2 |
libmpeg2: Add new package (#2383)
thanks
Diffstat (limited to 'src/libmpeg2-1.patch')
-rw-r--r-- | src/libmpeg2-1.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/libmpeg2-1.patch b/src/libmpeg2-1.patch new file mode 100644 index 0000000..45a6dc3 --- /dev/null +++ b/src/libmpeg2-1.patch @@ -0,0 +1,24 @@ +This file is part of MXE. See LICENSE.md for licensing information. + +The patch was taken from the scummvm.org documentation, it is +required on 64 bit systems due to the very old codebase. + +--- a/libvo/video_out_dx.c.orig 2014-02-17 16:38:24.000000000 +0100 ++++ b/libvo/video_out_dx.c 2014-02-17 16:39:34.000000000 +0100 +@@ -92,7 +92,7 @@ + switch (message) { + + case WM_WINDOWPOSCHANGED: +- instance = (dx_instance_t *) GetWindowLong (hwnd, GWL_USERDATA); ++ instance = (dx_instance_t *) GetWindowLongPtr (hwnd, GWLP_USERDATA); + + /* update the window position and size */ + point_window.x = 0; +@@ -173,7 +173,7 @@ + /* store a directx_instance pointer into the window local storage + * (for later use in event_handler). + * We need to use SetWindowLongPtr when it is available in mingw */ +- SetWindowLong (instance->window, GWL_USERDATA, (LONG) instance); ++ SetWindowLongPtr (instance->window, GWLP_USERDATA, (LONG_PTR) instance); + + ShowWindow (instance->window, SW_SHOW); |