From 4d363d04f9faef421761be60e2a8b788b878d209 Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Fri, 15 Feb 2019 19:34:50 -0600 Subject: [PATCH] Add ddraw-version-check and gdi32-rotation. --- patches/patchinstall.sh | 53 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index b2f04337..47bcd4a0 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -52,7 +52,7 @@ usage() # Get the upstream commit sha upstream_commit() { - echo "3fc1180623b9a0c9fc9e16abf358b179f2eff49b" + echo "06531b1d9898ba3ac3b7c69d6192682202606f8f" } # Show version information @@ -130,6 +130,7 @@ patch_enable_all () enable_ddraw_Rendering_Targets="$1" enable_ddraw_Silence_FIXMEs="$1" enable_ddraw_Write_Vtable="$1" + enable_ddraw_version_check="$1" enable_dinput_Deadlock="$1" enable_dinput_Initialize="$1" enable_dsound_EAX="$1" @@ -145,6 +146,7 @@ patch_enable_all () enable_fsutil_Stub_Program="$1" enable_gdi32_Lazy_Font_Initialization="$1" enable_gdi32_MultiMonitor="$1" + enable_gdi32_rotation="$1" enable_gdiplus_Performance_Improvements="$1" enable_hid_HidD_FlushQueue="$1" enable_httpapi_HttpCreateServerSession="$1" @@ -542,6 +544,9 @@ patch_enable () ddraw-Write_Vtable) enable_ddraw_Write_Vtable="$2" ;; + ddraw-version-check) + enable_ddraw_version_check="$2" + ;; dinput-Deadlock) enable_dinput_Deadlock="$2" ;; @@ -587,6 +592,9 @@ patch_enable () gdi32-MultiMonitor) enable_gdi32_MultiMonitor="$2" ;; + gdi32-rotation) + enable_gdi32_rotation="$2" + ;; gdiplus-Performance-Improvements) enable_gdiplus_Performance_Improvements="$2" ;; @@ -2053,6 +2061,13 @@ if test "$enable_dsound_EAX" -eq 1; then enable_dsound_Fast_Mixer=1 fi +if test "$enable_ddraw_version_check" -eq 1; then + if test "$enable_ddraw_Device_Caps" -gt 1; then + abort "Patchset ddraw-Device_Caps disabled, but ddraw-version-check depends on that." + fi + enable_ddraw_Device_Caps=1 +fi + if test "$enable_d3dx9_36_DXTn" -eq 1; then if test "$enable_wined3d_DXTn" -gt 1; then abort "Patchset wined3d-DXTn disabled, but d3dx9_36-DXTn depends on that." @@ -3177,6 +3192,24 @@ if test "$enable_ddraw_Write_Vtable" -eq 1; then ) >> "$patchlist" fi +# Patchset ddraw-version-check +# | +# | This patchset has the following (direct or indirect) dependencies: +# | * ddraw-Device_Caps +# | +# | This patchset fixes the following Wine bugs: +# | * [#19153] https://bugs.winehq.org/show_bug.cgi?id=19153 +# | +# | Modified files: +# | * dlls/ddraw/ddraw.c +# | +if test "$enable_ddraw_version_check" -eq 1; then + patch_apply ddraw-version-check/0001-ddraw-Return-correct-devices-based-off-requested-Dir.patch + ( + printf '%s\n' '+ { "David Adam", "ddraw: Return correct devices based off requested DirectX version.", 1 },'; + ) >> "$patchlist" +fi + # Patchset dinput-Deadlock # | # | This patchset fixes the following Wine bugs: @@ -3492,6 +3525,24 @@ if test "$enable_gdi32_MultiMonitor" -eq 1; then ) >> "$patchlist" fi +# Patchset gdi32-rotation +# | +# | This patchset fixes the following Wine bugs: +# | * [#34579] gdi32: fix for rotated Arc, ArcTo, Chord and Pie drawing problem +# | * [#35331] gdi32: fix for rotated ellipse +# | +# | Modified files: +# | * dlls/gdi32/dibdrv/graphics.c, dlls/gdi32/gdi_private.h +# | +if test "$enable_gdi32_rotation" -eq 1; then + patch_apply gdi32-rotation/0001-gdi32-fix-for-rotated-Arc-ArcTo-Chord-and-Pie-drawin.patch + patch_apply gdi32-rotation/0002-gdi32-fix-for-rotated-ellipse.patch + ( + printf '%s\n' '+ { "Daniel Wendt", "gdi32: Fix for rotated Arc, ArcTo, Chord and Pie drawing problem.", 1 },'; + printf '%s\n' '+ { "Daniel Wendt", "gdi32: Fix for rotated ellipse.", 1 },'; + ) >> "$patchlist" +fi + # Patchset gdiplus-Performance-Improvements # | # | Modified files: