|
|
| version 1.5, 2003/10/26 11:51:46 | version 1.6, 2003/10/26 12:12:12 |
|---|---|
| Line 208 static void clearoutofrect(const RECT *t | Line 208 static void clearoutofrect(const RECT *t |
| static void clearoutscreen(void) { | static void clearoutscreen(void) { |
| RECT base; | RECT base; |
| POINT clipt; | |
| RECT target; | RECT target; |
| GetClientRect(hWndMain, &base); | GetClientRect(hWndMain, &base); |
| clipt.x = 0; | |
| clipt.y = 0; | |
| ClientToScreen(hWndMain, &clipt); | |
| base.left += clipt.x; | |
| base.top += clipt.y; | |
| base.right += clipt.x; | |
| base.bottom += clipt.y; | |
| target.left = base.left + ddraw.scrn.left; | target.left = base.left + ddraw.scrn.left; |
| target.top = base.top + ddraw.scrn.top; | target.top = base.top + ddraw.scrn.top; |
| target.right = base.left + ddraw.scrn.right; | target.right = base.left + ddraw.scrn.right; |