Commit 94ee1ebd authored by Alexandre Julliard's avatar Alexandre Julliard

Remove a few no longer needed 16-bit exports from gdi32.

parent 65af6985
......@@ -425,14 +425,10 @@
@ stdcall DeleteMetaFile16(long)
@ stdcall DrvGetPrinterData16(str str ptr ptr long ptr)
@ stdcall DrvSetPrinterData16(str str long ptr long)
@ stdcall ExcludeVisRect16(long long long long long)
@ stdcall GetDCState16(long)
@ stdcall IntersectVisRect16(long long long long long)
@ stdcall IsDCCurrentPalette16(long)
@ stdcall OpenJob16(str str long)
@ stdcall SelectVisRgn16(long long)
@ stdcall SetDCHook(long ptr long)
@ stdcall SetDCOrg16(long long long)
@ stdcall SetDCState16(long long)
@ stdcall SetHookFlags16(long long)
@ stdcall WriteSpool16(long ptr long)
......
......@@ -943,6 +943,7 @@ static void NC_DoNCPaint( HWND hwnd, HRGN clip, BOOL suppress_menupaint )
WND *wndPtr;
DWORD dwStyle, dwExStyle;
WORD flags;
HRGN hrgn;
RECT rectClient, rectWindow;
int has_menu;
......@@ -969,19 +970,21 @@ static void NC_DoNCPaint( HWND hwnd, HRGN clip, BOOL suppress_menupaint )
Now, how is the "system" supposed to tell what happened?
*/
if (!(hdc = GetDCEx( hwnd, (clip > (HRGN)1) ? clip : 0, DCX_USESTYLE | DCX_WINDOW |
((clip > (HRGN)1) ?(DCX_INTERSECTRGN | DCX_KEEPCLIPRGN) : 0) ))) return;
if (ExcludeVisRect16( HDC_16(hdc), rectClient.left-rectWindow.left,
rectClient.top-rectWindow.top,
rectClient.right-rectWindow.left,
rectClient.bottom-rectWindow.top )
== NULLREGION)
hrgn = CreateRectRgn( rectClient.left - rectWindow.left,
rectClient.top - rectWindow.top,
rectClient.right - rectWindow.left,
rectClient.bottom - rectWindow.top );
if (clip > (HRGN)1)
{
ReleaseDC( hwnd, hdc );
return;
CombineRgn( hrgn, clip, hrgn, RGN_DIFF );
hdc = GetDCEx( hwnd, hrgn, DCX_USESTYLE | DCX_WINDOW | DCX_INTERSECTRGN );
}
else
{
hdc = GetDCEx( hwnd, hrgn, DCX_USESTYLE | DCX_WINDOW | DCX_EXCLUDERGN );
}
if (!hdc) return;
rect.top = rect.left = 0;
rect.right = rectWindow.right - rectWindow.left;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment