[Freeciv-Dev] (PR#16954) gui-xaw: small fix with info label popup
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: |
[Freeciv-Dev] (PR#16954) gui-xaw: small fix with info label popup |
From: |
"Egor Vyscrebentsov" <evyscr@xxxxxxxxx> |
Date: |
Wed, 10 May 2006 11:07:32 -0700 |
Reply-to: |
bugs@xxxxxxxxxxx |
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=16954 >
Good daytime!
Attached patch allows to view _full_ popup with any position of main
window.
I am going to commit it soon.
--
Thanks, evyscr
Index: client/gui-xaw/gui_main.c
===================================================================
--- client/gui-xaw/gui_main.c (revision 11958)
+++ client/gui-xaw/gui_main.c (working copy)
@@ -747,7 +747,7 @@
XtVaGetValues(p, XtNwidth, &w, XtNheight, &h, NULL);
XtTranslateCoords(info_command, ev->x, ev->y, &x, &y);
- XtVaSetValues(p, XtNx, x - w / 2, XtNy, y - h / 2, NULL);
+ XtVaSetValues(p, XtNx, MAX(0, x - w / 2), XtNy, MAX(0, y - h / 2), NULL);
XtPopupSpringLoaded(p);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#16954) gui-xaw: small fix with info label popup,
Egor Vyscrebentsov <=
|
|