mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 00:53:03 +00:00
Fix indentation :)
svn path=/trunk/; revision=33351
This commit is contained in:
parent
98d47d1fc4
commit
e2c529ca16
1 changed files with 51 additions and 60 deletions
|
@ -31,8 +31,7 @@
|
||||||
int circlesCount;
|
int circlesCount;
|
||||||
int width, x, y;
|
int width, x, y;
|
||||||
|
|
||||||
LRESULT WINAPI ScreenSaverProc (HWND hwnd, UINT iMsg, WPARAM wparam,
|
LRESULT WINAPI ScreenSaverProc (HWND hwnd, UINT iMsg, WPARAM wparam, LPARAM lparam)
|
||||||
LPARAM lparam)
|
|
||||||
{
|
{
|
||||||
HDC hdc;
|
HDC hdc;
|
||||||
RECT rect;
|
RECT rect;
|
||||||
|
@ -41,23 +40,15 @@ LRESULT WINAPI ScreenSaverProc (HWND hwnd, UINT iMsg, WPARAM wparam,
|
||||||
switch (iMsg)
|
switch (iMsg)
|
||||||
{
|
{
|
||||||
case WM_CREATE:
|
case WM_CREATE:
|
||||||
{
|
SetTimer (hwnd, APP_TIMER, APP_TIMER_INTERVAL, NULL);
|
||||||
SetTimer (
|
|
||||||
hwnd,
|
|
||||||
APP_TIMER,
|
|
||||||
APP_TIMER_INTERVAL,
|
|
||||||
NULL);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WM_DESTROY:
|
case WM_DESTROY:
|
||||||
{
|
|
||||||
KillTimer (hwnd, APP_TIMER);
|
KillTimer (hwnd, APP_TIMER);
|
||||||
PostQuitMessage (0);
|
PostQuitMessage (0);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
|
||||||
break;
|
|
||||||
case WM_TIMER:
|
case WM_TIMER:
|
||||||
{
|
|
||||||
hdc = GetDC (hwnd);
|
hdc = GetDC (hwnd);
|
||||||
GetClientRect (hwnd, &rect);
|
GetClientRect (hwnd, &rect);
|
||||||
hbrush = CreateSolidBrush (RGB (RANDOM_COLOR, RANDOM_COLOR, RANDOM_COLOR));
|
hbrush = CreateSolidBrush (RGB (RANDOM_COLOR, RANDOM_COLOR, RANDOM_COLOR));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue