From 78126b68a6ae2064f49285774911b404b8fa7365 Mon Sep 17 00:00:00 2001 From: David Welch Date: Tue, 27 Aug 2002 23:32:21 +0000 Subject: [PATCH] More painting fixes. svn path=/trunk/; revision=3413 --- reactos/apps/tests/winhello/winhello.c | 5 +++++ reactos/include/win32k/region.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/reactos/apps/tests/winhello/winhello.c b/reactos/apps/tests/winhello/winhello.c index 9c87f7eb414..d330b6de514 100644 --- a/reactos/apps/tests/winhello/winhello.c +++ b/reactos/apps/tests/winhello/winhello.c @@ -63,11 +63,16 @@ LRESULT CALLBACK MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) { PAINTSTRUCT ps; HDC hDC; + HFONT tf; switch(msg) { case WM_PAINT: hDC = BeginPaint(hWnd, &ps); + tf = CreateFontA(14, 0, 0, TA_BASELINE, FW_NORMAL, FALSE, FALSE, FALSE, + ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, + DEFAULT_QUALITY, FIXED_PITCH|FF_DONTCARE, "Timmons"); + SelectObject(hDC, tf); TextOut(hDC, 10, 10, "Hello World from ReactOS!", strlen("Hello World from ReactOS!")); EndPaint(hWnd, &ps); diff --git a/reactos/include/win32k/region.h b/reactos/include/win32k/region.h index 406b4e94a06..2c87cd20ece 100644 --- a/reactos/include/win32k/region.h +++ b/reactos/include/win32k/region.h @@ -144,5 +144,7 @@ W32kGetRegionData(HRGN hrgn, DWORD count, LPRGNDATA rgndata); HRGN REGION_CropRgn(HRGN hDst, HRGN hSrc, const PRECT lpRect, PPOINT lpPt); +HRGN STDCALL +UnsafeW32kCreateRectRgnIndirect(CONST PRECT rc); #endif