summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src/multimon.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-04 16:13:15 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-04 16:13:15 +0000
commit875f740e2a9efe878337e27849aa3b1fdddcc503 (patch)
tree55f3ad578a3919106c52b9b2e2bab44997900d5b /plugins/Scriver/src/multimon.h
parentd4eaaec055bbdc940f5758cc1fd7b22b2cb105d8 (diff)
more code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@3884 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver/src/multimon.h')
-rw-r--r--plugins/Scriver/src/multimon.h26
1 files changed, 12 insertions, 14 deletions
diff --git a/plugins/Scriver/src/multimon.h b/plugins/Scriver/src/multimon.h
index aedd943da4..8498b775bd 100644
--- a/plugins/Scriver/src/multimon.h
+++ b/plugins/Scriver/src/multimon.h
@@ -178,8 +178,7 @@ typedef struct {
if (InitMultipleMonitorStubs())
return g_pfnGetSystemMetrics(nIndex);
- switch (nIndex)
- {
+ switch (nIndex) {
case SM_CMONITORS:
case SM_SAMEDISPLAYFORMAT:
return 1;
@@ -313,18 +312,17 @@ typedef struct {
if ((hWnd = WindowFromDC(hdc)) == NULL)
return FALSE;
- switch (GetClipBox(hdc, &rcClip))
- {
- default:
- MapWindowPoints(NULL, hWnd, (LPPOINT)&rcLimit, 2);
- if (IntersectRect(&rcCallback, &rcClip, &rcLimit))
- break;
- //fall thru
- case NULLREGION:
- return TRUE;
- case ERROR:
- return FALSE;
- }
+ switch (GetClipBox(hdc, &rcClip)) {
+ default:
+ MapWindowPoints(NULL, hWnd, (LPPOINT)&rcLimit, 2);
+ if (IntersectRect(&rcCallback, &rcClip, &rcLimit))
+ break;
+ //fall thru
+ case NULLREGION:
+ return TRUE;
+ case ERROR:
+ return FALSE;
+ }
rcLimit = rcCallback;
}