From bedc89bb5f42e7cb6177f02f3c0667e7ea8ce97d Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Thu, 2 Aug 2007 00:10:15 +0000 Subject: [PATCH] rename NtGdiGetDCState to IntGdiGetDCState svn path=/trunk/; revision=28086 --- reactos/subsystems/win32/win32k/include/intgdi.h | 2 ++ reactos/subsystems/win32/win32k/ntuser/windc.c | 2 +- reactos/subsystems/win32/win32k/objects/dc.c | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/reactos/subsystems/win32/win32k/include/intgdi.h b/reactos/subsystems/win32/win32k/include/intgdi.h index 414d825493a..0db72572b77 100644 --- a/reactos/subsystems/win32/win32k/include/intgdi.h +++ b/reactos/subsystems/win32/win32k/include/intgdi.h @@ -253,5 +253,7 @@ IntCreateCompatibleBitmap(PDC Dc, INT Width, INT Height); +HDC STDCALL IntGdiGetDCState(HDC hDC); + #endif /* _WIN32K_INTGDI_H */ diff --git a/reactos/subsystems/win32/win32k/ntuser/windc.c b/reactos/subsystems/win32/win32k/ntuser/windc.c index b1f26d73ace..bb633efdb2f 100644 --- a/reactos/subsystems/win32/win32k/ntuser/windc.c +++ b/reactos/subsystems/win32/win32k/ntuser/windc.c @@ -130,7 +130,7 @@ DceAllocDCE(PWINDOW_OBJECT Window OPTIONAL, DCE_TYPE Type) if (NULL == defaultDCstate) // Ultra HAX! Dedicated to GvG! { // This is a cheesy way to do this. // But, due to the right way of creating gdi handles there is no choice. - defaultDCstate = NtGdiGetDCState(pDce->hDC); + defaultDCstate = IntGdiGetDCState(pDce->hDC); DC_SetOwnership( defaultDCstate, NULL); } diff --git a/reactos/subsystems/win32/win32k/objects/dc.c b/reactos/subsystems/win32/win32k/objects/dc.c index 5a1d94afb0b..0f6eb5ef7c2 100644 --- a/reactos/subsystems/win32/win32k/objects/dc.c +++ b/reactos/subsystems/win32/win32k/objects/dc.c @@ -1230,7 +1230,7 @@ NtGdiSetBkColor(HDC hDC, COLORREF color) } HDC STDCALL -NtGdiGetDCState(HDC hDC) +IntGdiGetDCState(HDC hDC) { PDC newdc, dc; HDC hnewdc; @@ -1874,7 +1874,7 @@ NtGdiSaveDC(HDC hDC) DPRINT("NtGdiSaveDC(%lx)\n", hDC); - if (!(hdcs = NtGdiGetDCState(hDC))) + if (!(hdcs = IntGdiGetDCState(hDC))) { return 0; }