summaryrefslogtreecommitdiff
path: root/FL/Fl_Screen_Driver.H
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-09-13 16:15:34 +0000
committerManolo Gouy <Manolo>2017-09-13 16:15:34 +0000
commit435d135825fd276edc5246a55f37b6873feb2ae2 (patch)
treeeded8a63366c058673e4b152ccb74c3fa4985ff6 /FL/Fl_Screen_Driver.H
parentbe7e7f0ee88f18da253f86804f8d58a8bbbb1f76 (diff)
SVG support: draw images at full screen resolution also when there are several pixels per graphical unit, as with Apple retina displays.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12456 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Screen_Driver.H')
-rw-r--r--FL/Fl_Screen_Driver.H3
1 files changed, 3 insertions, 0 deletions
diff --git a/FL/Fl_Screen_Driver.H b/FL/Fl_Screen_Driver.H
index 7f229e22b..c3b36779b 100644
--- a/FL/Fl_Screen_Driver.H
+++ b/FL/Fl_Screen_Driver.H
@@ -176,6 +176,9 @@ public:
/** Returns the platform's support for rescaling the application with ctrl-/+/-/0/ keys.
*/
virtual APP_SCALING_CAPABILITY rescalable() { return NO_APP_SCALING; }
+ /* Number of pixels per drawing unit for the display.
+ The default implementation may be enough. */
+ virtual float retina_factor() { return 1; }
};