]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/GUIRunTime.C
Bugfixes: checkboxes to radiobuttons (from J�rgen S) and remove a little
[lyx.git] / src / frontends / xforms / GUIRunTime.C
index 46fa22c5c04d6cb3cc540d9414047dfeaeee7634..9d4305856ad91255adf62d93be521e0dc5756d73 100644 (file)
@@ -38,7 +38,7 @@ int const xforms_include_version = FL_INCLUDE_VERSION;
 } // namespace anon
 
 
-int GUIRunTime::initApplication(int , char **)
+int GUIRunTime::initApplication(int &, char **)
 {
        // Check the XForms version in the forms.h header against
        // the one in the libforms. If they don't match quit the
@@ -144,3 +144,10 @@ int GUIRunTime::x11VisualDepth()
 {
        return fl_get_visual_depth();
 }
+
+float GUIRunTime::getScreenDPI()
+{
+       Screen * scr = ScreenOfDisplay(fl_get_display(), fl_screen);
+       return ((HeightOfScreen(scr) * 25.4 / HeightMMOfScreen(scr)) +
+               (WidthOfScreen(scr) * 25.4 / WidthMMOfScreen(scr))) / 2;
+}