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:
parent
d23892ef52
commit
f235678851
@ -1244,7 +1244,7 @@ static bool use_monitors_xml(float &factor) {
|
|||||||
if( (p = strstr(line, "<scale>")) && strstr(p, "</scale>") ) {
|
if( (p = strstr(line, "<scale>")) && strstr(p, "</scale>") ) {
|
||||||
p += 7;
|
p += 7;
|
||||||
sscanf(p, "%f", &factor);
|
sscanf(p, "%f", &factor);
|
||||||
found = true;
|
if (factor == 2) { found = true; break; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user