mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 08:00:24 +00:00
fix msvc build
svn path=/trunk/; revision=38649
This commit is contained in:
parent
eca633ce05
commit
51a15d360b
1 changed files with 6 additions and 3 deletions
|
@ -81,13 +81,16 @@ ScreenSaverProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
BITMAP bm; /* Bitmap structure as seen in bmWidth & bmHeight */
|
BITMAP bm; /* Bitmap structure as seen in bmWidth & bmHeight */
|
||||||
PAINTSTRUCT ps;
|
PAINTSTRUCT ps;
|
||||||
|
HDC hdc;
|
||||||
|
HDC hdcMem;
|
||||||
|
HBITMAP hbmOld;
|
||||||
|
|
||||||
// Obtain window coordinates.
|
// Obtain window coordinates.
|
||||||
GetClientRect (hWnd, &rect);
|
GetClientRect (hWnd, &rect);
|
||||||
|
|
||||||
HDC hdc = BeginPaint(hWnd, &ps);
|
hdc = BeginPaint(hWnd, &ps);
|
||||||
HDC hdcMem = CreateCompatibleDC(hdc);
|
hdcMem = CreateCompatibleDC(hdc);
|
||||||
HBITMAP hbmOld = SelectObject(hdcMem, bitmap);
|
hbmOld = SelectObject(hdcMem, bitmap);
|
||||||
|
|
||||||
GetObject(bitmap, sizeof(bm), &bm);
|
GetObject(bitmap, sizeof(bm), &bm);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue