diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-04-01 00:42:55 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2005-04-01 00:42:55 +0000 |
| commit | 17ea3de1e76d6fafdfb54b6f19d345b2c817bebc (patch) | |
| tree | fbacfe14f09ac9fe0d94a33e0bef6899ce490b62 /src/screen_xywh.cxx | |
| parent | e50e551f7ceba833ad5d1dff1d89b247f872eb47 (diff) | |
Fixed WIN32 monitor enum proc.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4229 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/screen_xywh.cxx')
| -rw-r--r-- | src/screen_xywh.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screen_xywh.cxx b/src/screen_xywh.cxx index 800b5c8d6..c967394fe 100644 --- a/src/screen_xywh.cxx +++ b/src/screen_xywh.cxx @@ -38,7 +38,7 @@ static int num_screens = 0; static RECT screens[16]; static BOOL CALLBACK screen_cb(HMONITOR mon, HDC, LPRECT, LPARAM) { - if (num_screens >= 16) return; + if (num_screens >= 16) return TRUE; MONITORINFO mi; mi.cbSize = sizeof(mi); @@ -46,6 +46,7 @@ static BOOL CALLBACK screen_cb(HMONITOR mon, HDC, LPRECT, LPARAM) { GetMonitorInfo(mon, &mi); screens[num_screens] = mi.rcWork; num_screens ++; + return TRUE; } static void screen_init() { |
