Jacek Caban : gdi32: Use ntgdi names for GetDeviceGammaRamp and SetDeviceGammaRamp.
Alexandre Julliard
julliard at winehq.org
Mon Aug 2 16:43:35 CDT 2021
Module: wine
Branch: master
Commit: 42851bd13b8611f45ef88391bac04f0b038e715d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=42851bd13b8611f45ef88391bac04f0b038e715d
Author: Jacek Caban <jacek at codeweavers.com>
Date: Mon Aug 2 10:03:17 2021 +0200
gdi32: Use ntgdi names for GetDeviceGammaRamp and SetDeviceGammaRamp.
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/gdi32/dc.c | 20 ++++++++++----------
dlls/gdi32/gdi32.spec | 4 ++--
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/dlls/gdi32/dc.c b/dlls/gdi32/dc.c
index 1faf83b3201..afa4247cf9e 100644
--- a/dlls/gdi32/dc.c
+++ b/dlls/gdi32/dc.c
@@ -1081,17 +1081,17 @@ WORD WINAPI SetHookFlags( HDC hdc, WORD flags )
}
/***********************************************************************
- * GetDeviceGammaRamp (GDI32.@)
+ * NtGdiGetDeviceGammaRamp (win32u.@)
*/
-BOOL WINAPI GetDeviceGammaRamp(HDC hDC, LPVOID ptr)
+BOOL WINAPI NtGdiGetDeviceGammaRamp( HDC hdc, void *ptr )
{
BOOL ret = FALSE;
- DC *dc = get_dc_ptr( hDC );
+ DC *dc = get_dc_ptr( hdc );
- TRACE("%p, %p\n", hDC, ptr);
+ TRACE("%p, %p\n", hdc, ptr);
if( dc )
{
- if (GetObjectType( hDC ) != OBJ_MEMDC)
+ if (GetObjectType( hdc ) != OBJ_MEMDC)
{
PHYSDEV physdev = GET_DC_PHYSDEV( dc, pGetDeviceGammaRamp );
ret = physdev->funcs->pGetDeviceGammaRamp( physdev, ptr );
@@ -1181,17 +1181,17 @@ static BOOL check_gamma_ramps(void *ptr)
}
/***********************************************************************
- * SetDeviceGammaRamp (GDI32.@)
+ * NtGdiSetDeviceGammaRamp (win32u.@)
*/
-BOOL WINAPI SetDeviceGammaRamp(HDC hDC, LPVOID ptr)
+BOOL WINAPI NtGdiSetDeviceGammaRamp( HDC hdc, void *ptr )
{
BOOL ret = FALSE;
- DC *dc = get_dc_ptr( hDC );
+ DC *dc = get_dc_ptr( hdc );
- TRACE("%p, %p\n", hDC, ptr);
+ TRACE( "%p, %p\n", hdc, ptr );
if( dc )
{
- if (GetObjectType( hDC ) != OBJ_MEMDC)
+ if (GetObjectType( hdc ) != OBJ_MEMDC)
{
PHYSDEV physdev = GET_DC_PHYSDEV( dc, pSetDeviceGammaRamp );
diff --git a/dlls/gdi32/gdi32.spec b/dlls/gdi32/gdi32.spec
index 6b1d0952bf2..5995396abe7 100644
--- a/dlls/gdi32/gdi32.spec
+++ b/dlls/gdi32/gdi32.spec
@@ -275,7 +275,7 @@
@ stdcall GetDIBColorTable(long long long ptr)
@ stdcall GetDIBits(long long long long ptr ptr long)
@ stdcall GetDeviceCaps(long long)
-@ stdcall GetDeviceGammaRamp(long ptr)
+@ stdcall GetDeviceGammaRamp(long ptr) NtGdiGetDeviceGammaRamp
@ stub GetETM
# @ stub GetEUDCTimeStamp
# @ stub GetEUDCTimeStampExW
@@ -488,7 +488,7 @@
@ stdcall SetDIBColorTable(long long long ptr)
@ stdcall SetDIBits(long long long long ptr ptr long)
@ stdcall SetDIBitsToDevice(long long long long long long long long long ptr ptr long)
-@ stdcall SetDeviceGammaRamp(long ptr)
+@ stdcall SetDeviceGammaRamp(long ptr) NtGdiSetDeviceGammaRamp
@ stdcall SetEnhMetaFileBits(long ptr)
@ stub SetFontEnumeration
@ stdcall SetGraphicsMode(long long)
More information about the wine-cvs
mailing list