X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=lib%2Fuser32%2Fwindows%2Fpaint.c;h=059ff608b32630982b490e3744091fcec6441431;hb=refs%2Ftags%2Fcaptive-0_8;hp=b2df39416ba9eea3d7798248309f17bf8746c0c6;hpb=569875a61758c7ea252562281ac4d95dce52f252;p=reactos.git diff --git a/lib/user32/windows/paint.c b/lib/user32/windows/paint.c index b2df394..059ff60 100644 --- a/lib/user32/windows/paint.c +++ b/lib/user32/windows/paint.c @@ -30,6 +30,7 @@ #include #include +#define NDEBUG #include /* FUNCTIONS *****************************************************************/ @@ -84,7 +85,7 @@ InvalidateRect( CONST RECT *lpRect, WINBOOL bErase) { - return FALSE; + return NtUserInvalidateRect( hWnd, lpRect, bErase ); } WINBOOL @@ -94,8 +95,9 @@ InvalidateRgn( HRGN hRgn, WINBOOL bErase) { - return FALSE; + return NtUserInvalidateRgn( hWnd, hRgn, bErase ); } + WINBOOL STDCALL RedrawWindow( @@ -104,8 +106,17 @@ RedrawWindow( HRGN hrgnUpdate, UINT flags) { - return FALSE; + NTSTATUS Status; + + Status = NtUserRedrawWindow(hWnd, lprcUpdate, hrgnUpdate, flags); + if (! NT_SUCCESS(Status)) + { + SetLastError(RtlNtStatusToDosError(Status)); + } + + return NT_SUCCESS(Status); } + WINBOOL STDCALL ScrollDC( @@ -133,7 +144,7 @@ STDCALL UpdateWindow( HWND hWnd) { - return FALSE; + return NtUserUpdateWindow( hWnd ); } WINBOOL STDCALL