From 5eb1d3c69b5a0cef98cdc7363e5ec8fc8912ac9c Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Sat, 28 May 2016 00:24:35 +0200 Subject: [PATCH] Added patch to implement DrawDibProfileDisplay in msvideo.dll16. --- ...ll16-Implement-DrawDibProfileDisplay.patch | 46 +++++++++++++++++++ .../definition | 1 + patches/patchinstall.sh | 16 +++++++ 3 files changed, 63 insertions(+) create mode 100644 patches/msvideo.dll16-DrawDibProfileDisplay/0001-msvideo.dll16-Implement-DrawDibProfileDisplay.patch create mode 100644 patches/msvideo.dll16-DrawDibProfileDisplay/definition diff --git a/patches/msvideo.dll16-DrawDibProfileDisplay/0001-msvideo.dll16-Implement-DrawDibProfileDisplay.patch b/patches/msvideo.dll16-DrawDibProfileDisplay/0001-msvideo.dll16-Implement-DrawDibProfileDisplay.patch new file mode 100644 index 00000000..56c48c76 --- /dev/null +++ b/patches/msvideo.dll16-DrawDibProfileDisplay/0001-msvideo.dll16-Implement-DrawDibProfileDisplay.patch @@ -0,0 +1,46 @@ +From a4e357c8f7c61c27b536671fe300ea1c6718a03d Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Michael=20M=C3=BCller?= +Date: Sat, 28 May 2016 00:00:05 +0200 +Subject: msvideo.dll16: Implement DrawDibProfileDisplay. + +--- + dlls/msvideo.dll16/msvideo.dll16.spec | 2 +- + dlls/msvideo.dll16/msvideo16.c | 9 +++++++++ + 2 files changed, 10 insertions(+), 1 deletion(-) + +diff --git a/dlls/msvideo.dll16/msvideo.dll16.spec b/dlls/msvideo.dll16/msvideo.dll16.spec +index f45f644..01dbbf3 100644 +--- a/dlls/msvideo.dll16/msvideo.dll16.spec ++++ b/dlls/msvideo.dll16/msvideo.dll16.spec +@@ -35,7 +35,7 @@ + 111 stub DRAWDIBCHANGEPALETTE + 112 pascal -ret16 DrawDibRealize(word word word) DrawDibRealize16 + 113 stub DRAWDIBTIME +-114 stub DRAWDIBPROFILEDISPLAY ++114 pascal -ret16 DrawDibProfileDisplay(segptr) DrawDibProfileDisplay16 + 115 stub STRETCHDIB + 118 pascal -ret16 DrawDibStart(word long) DrawDibStart16 + 119 pascal -ret16 DrawDibStop(word) DrawDibStop16 +diff --git a/dlls/msvideo.dll16/msvideo16.c b/dlls/msvideo.dll16/msvideo16.c +index 8f02cc1..28f126c 100644 +--- a/dlls/msvideo.dll16/msvideo16.c ++++ b/dlls/msvideo.dll16/msvideo16.c +@@ -121,6 +121,15 @@ UINT16 VFWAPI DrawDibRealize16(HDRAWDIB16 hdd, HDC16 hdc, + } + + /************************************************************************* ++ * DrawDibProfileDisplay [MSVIDEO.114] ++ */ ++BOOL16 VFWAPI DrawDibProfileDisplay16(LPBITMAPINFOHEADER lpbi) ++{ ++ TRACE("(%p)\n", lpbi); ++ return DrawDibProfileDisplay(lpbi); ++} ++ ++/************************************************************************* + * DrawDibStart [MSVIDEO.118] + */ + BOOL16 VFWAPI DrawDibStart16(HDRAWDIB16 hdd, DWORD rate) +-- +2.8.0 + diff --git a/patches/msvideo.dll16-DrawDibProfileDisplay/definition b/patches/msvideo.dll16-DrawDibProfileDisplay/definition new file mode 100644 index 00000000..8d05de92 --- /dev/null +++ b/patches/msvideo.dll16-DrawDibProfileDisplay/definition @@ -0,0 +1 @@ +Fixes: Implement DrawDibProfileDisplay in msvideo.dll16 diff --git a/patches/patchinstall.sh b/patches/patchinstall.sh index 1d3d4f1e..b9c53229 100755 --- a/patches/patchinstall.sh +++ b/patches/patchinstall.sh @@ -197,6 +197,7 @@ patch_enable_all () enable_msvcrt_Math_Precision="$1" enable_msvcrt__fstat32i64="$1" enable_msvfw32_ICGetDisplayFormat="$1" + enable_msvideo_dll16_DrawDibProfileDisplay="$1" enable_ntdll_APC_Performance="$1" enable_ntdll_APC_Start_Process="$1" enable_ntdll_Activation_Context="$1" @@ -771,6 +772,9 @@ patch_enable () msvfw32-ICGetDisplayFormat) enable_msvfw32_ICGetDisplayFormat="$2" ;; + msvideo.dll16-DrawDibProfileDisplay) + enable_msvideo_dll16_DrawDibProfileDisplay="$2" + ;; ntdll-APC_Performance) enable_ntdll_APC_Performance="$2" ;; @@ -4663,6 +4667,18 @@ if test "$enable_msvfw32_ICGetDisplayFormat" -eq 1; then ) >> "$patchlist" fi +# Patchset msvideo.dll16-DrawDibProfileDisplay +# | +# | Modified files: +# | * dlls/msvideo.dll16/msvideo.dll16.spec, dlls/msvideo.dll16/msvideo16.c +# | +if test "$enable_msvideo_dll16_DrawDibProfileDisplay" -eq 1; then + patch_apply msvideo.dll16-DrawDibProfileDisplay/0001-msvideo.dll16-Implement-DrawDibProfileDisplay.patch + ( + echo '+ { "Michael Müller", "msvideo.dll16: Implement DrawDibProfileDisplay.", 1 },'; + ) >> "$patchlist" +fi + # Patchset ntdll-APC_Performance # | # | Modified files: