diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2011-01-07 01:12:04 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2011-01-07 01:12:04 +0000 |
| commit | 308c6bc3077da11f2727d059e8bc5776b43138ce (patch) | |
| tree | 60f513db3550642331a4d33f887c384f1a6ea20c /src/screen_xywh.cxx | |
| parent | 7dc05cb20ee92e38b3d1fbd88664e572d73a8d54 (diff) | |
DPI fixes for MSWindows GDI
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8205 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/screen_xywh.cxx')
| -rw-r--r-- | src/screen_xywh.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/screen_xywh.cxx b/src/screen_xywh.cxx index e7c48c22d..d8cd96a5e 100644 --- a/src/screen_xywh.cxx +++ b/src/screen_xywh.cxx @@ -76,7 +76,7 @@ static BOOL CALLBACK screen_cb(HMONITOR mon, HDC, LPRECT r, LPARAM) { dpi[num_screens][0] = (float)GetDeviceCaps(screen, LOGPIXELSX); dpi[num_screens][1] = (float)GetDeviceCaps(screen, LOGPIXELSY); } - ReleaseDC(); + ReleaseDC(0L, screen); } num_screens ++; @@ -97,7 +97,7 @@ static void screen_init() { // We do have EnumDisplayMonitors, so lets find out how many monitors... num_screens = GetSystemMetrics(SM_CMONITORS); - if (num_screens > 1) { +// if (num_screens > 1) { // If there is more than 1 monitor, enumerate them... fl_gmi = (fl_gmi_func)GetProcAddress(hMod, "GetMonitorInfoA"); @@ -109,7 +109,7 @@ static void screen_init() { fl_edm(0, 0, screen_cb, 0); return; } - } +// } } } |
