Michael Koziarski's fix gnome compilation patch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3278 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Allan Rae 2002-01-03 03:44:19 +00:00
parent ce2ec24b67
commit 59a3a301c6
4 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2002-01-03 Michael Koziarski <michael@koziarski.com>
* Dialogs.h: fix compilation.
* Makefile.am: ditto.
* GUIRunTime.C: ditto. Supply a getScreenDPI().
2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr> 2001-12-19 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* Timeout_pimpl.h: do not include <config.h> in header files. * Timeout_pimpl.h: do not include <config.h> in header files.

View File

@ -17,6 +17,7 @@
#include "gettext.h" #include "gettext.h"
#include "Dialogs.h" #include "Dialogs.h"
#include "BufferView.h"
#include "gnomeBC.h" #include "gnomeBC.h"
#include "ControlBibitem.h" #include "ControlBibitem.h"

View File

@ -154,3 +154,10 @@ int GUIRunTime::x11VisualDepth()
{ {
return fl_get_visual_depth(); 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;
}

View File

@ -22,6 +22,8 @@ libgnome_la_LIBADD = \
../xforms/FormMathsMatrix.lo \ ../xforms/FormMathsMatrix.lo \
../xforms/FormMathsPanel.lo \ ../xforms/FormMathsPanel.lo \
../xforms/FormMathsSpace.lo \ ../xforms/FormMathsSpace.lo \
../xforms/DropDown.lo \
../xforms/Alert_pimpl.lo \
@LYX_LIBS@ @FRONTEND_LDFLAGS@ @FRONTEND_LIBS@ @LYX_LIBS@ @FRONTEND_LDFLAGS@ @FRONTEND_LIBS@
# ../xforms/FileDialog.lo \ # ../xforms/FileDialog.lo \