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; }