Fix Windows CreateDC/DeleteDC mismatch (STR #3373).

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12333 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Albrecht Schlosser 2017-07-18 16:50:45 +00:00
parent d577f751b2
commit 5252bbe03b
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ CHANGES IN FLTK 1.3.5 RELEASED: ??? ?? 2017
Bug fixes and other improvements
- Fix Windows CreateDC/DeleteDC mismatch (STR #3373).
- Updated bundled configure scripts config.guess and config.sub.
- Fix configure --enable-cairo --enable-cairoext,
see report in fltk.general:

View File

@ -74,7 +74,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(0L, screen);
DeleteDC(screen);
}
num_screens ++;