From 208b2ead8a9af2b06d1261be9a8e98f48689aed1 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 24 Oct 2012 08:28:18 +0000 Subject: Fl::screen_work_area() was added after FLTK 1.3.0, so we need to have checks that it is actually present on the current system. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5008 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- vncviewer/DesktopWindow.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'vncviewer') diff --git a/vncviewer/DesktopWindow.cxx b/vncviewer/DesktopWindow.cxx index b00fc93c..746f3413 100644 --- a/vncviewer/DesktopWindow.cxx +++ b/vncviewer/DesktopWindow.cxx @@ -110,8 +110,13 @@ DesktopWindow::DesktopWindow(int w, int h, const char *name, // On OS X we can do the maximize thing properly before the // window is showned. Other platforms handled further down... if (maximize) { +#ifdef HAVE_FLTK_WORK_AREA int dummy; Fl::screen_work_area(dummy, dummy, w, h, geom_x, geom_y); +#else + w = Fl::w(); + h = Fl::h(); +#endif } #endif @@ -610,7 +615,12 @@ void DesktopWindow::maximizeWindow() return; #endif int X, Y, W, H; +#ifdef HAVE_FLTK_WORK_AREA Fl::screen_work_area(X, Y, W, H, this->x(), this->y()); +#else + W = Fl::w(); + H = Fl::h(); +#endif size(W, H); #else // X11 -- cgit v1.2.3