X11 under Ubuntu: read screen scaling information - continued

the first scaling value set at 2 is retained.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@13049 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2018-09-14 14:49:23 +00:00
parent d23892ef52
commit f235678851

View File

@ -1244,7 +1244,7 @@ static bool use_monitors_xml(float &factor) {
if( (p = strstr(line, "<scale>")) && strstr(p, "</scale>") ) {
p += 7;
sscanf(p, "%f", &factor);
found = true;
if (factor == 2) { found = true; break; }
}
}
}