From 76180afe8c3d902cc610e0a5e7bd5937e2671aeb Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Thu, 20 Sep 2007 17:19:12 +0000 Subject: [PATCH] remove dependency on FLTK 1.1.7 (replace call to Fl::screen_xywh with call to Fl::w) --- Fltk/GUI.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Fltk/GUI.cpp b/Fltk/GUI.cpp index 30b7c6437c..3786f8749d 100644 --- a/Fltk/GUI.cpp +++ b/Fltk/GUI.cpp @@ -1,4 +1,4 @@ -// $Id: GUI.cpp,v 1.640 2007-09-15 17:11:50 geuzaine Exp $ +// $Id: GUI.cpp,v 1.641 2007-09-20 17:19:12 geuzaine Exp $ // // Copyright (C) 1997-2007 C. Geuzaine, J.-F. Remacle // @@ -475,8 +475,7 @@ int GetFontSize() return CTX.fontsize; } else{ - int x, y, w, h; - Fl::screen_xywh(x, y, w, h); + int w = Fl::w(); if(w <= 860) return 11; else if(w <= 1024) return 12; else if(w <= 1440) return 13; -- GitLab