} // 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
{
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;
+}