summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2018-09-14 14:49:23 +0000
committerManolo Gouy <Manolo>2018-09-14 14:49:23 +0000
commitf2356788510766871d32a78783de866a38950d57 (patch)
tree95e54abbb4fe5dc40afea67db5f13cb81720f389 /src
parentd23892ef523d601f68e26079d9a620119956fb21 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/drivers/X11/Fl_X11_Screen_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/X11/Fl_X11_Screen_Driver.cxx b/src/drivers/X11/Fl_X11_Screen_Driver.cxx
index aceafca0f..d305e81ee 100644
--- a/src/drivers/X11/Fl_X11_Screen_Driver.cxx
+++ b/src/drivers/X11/Fl_X11_Screen_Driver.cxx
@@ -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; }
}
}
}