]> git.mxchange.org Git - flightgear.git/commitdiff
make resize margin smaller
authormfranz <mfranz>
Tue, 10 Feb 2009 22:14:13 +0000 (22:14 +0000)
committerTim Moore <timoore@redhat.com>
Fri, 13 Feb 2009 09:18:20 +0000 (10:18 +0100)
src/GUI/dialog.cxx

index e72275f91f15fed091f6f053df49793599628cd6..27826ee74fb65aaa2233991f0517facf8c235331 100644 (file)
@@ -17,6 +17,8 @@
 
 enum format_type { f_INVALID, f_INT, f_LONG, f_FLOAT, f_DOUBLE, f_STRING };
 static const int FORMAT_BUFSIZE = 255;
+static const int RESIZE_MARGIN = 7;
+
 
 /**
  * Makes sure the format matches '%[ -+#]?\d*(\.\d*)?(l?[df]|s)', with
@@ -235,8 +237,8 @@ int fgPopup::checkHit(int button, int updown, int x, int y)
 
         _resizing = 0;
         if (!global_drag && _resizable) {
-            int hmargin = global_resize ? _dlgW / 3 : 10;
-            int vmargin = global_resize ? _dlgH / 3 : 10;
+            int hmargin = global_resize ? _dlgW / 3 : RESIZE_MARGIN;
+            int vmargin = global_resize ? _dlgH / 3 : RESIZE_MARGIN;
 
             if (y - _dlgY < vmargin)
                 _resizing |= BOTTOM;