Scaling for X11 platform: avoid undrawn right and bottom window margins when manually resizing windows

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12255 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy
2017-06-10 06:10:37 +00:00
parent 6b2c5fcd09
commit 8de22cfa42
+3 -2
View File
@@ -44,6 +44,7 @@
# include <unistd.h> # include <unistd.h>
# include <time.h> # include <time.h>
# include <sys/time.h> # include <sys/time.h>
# include <math.h>
# include <X11/Xmd.h> # include <X11/Xmd.h>
# include <X11/Xlocale.h> # include <X11/Xlocale.h>
# include <X11/Xlib.h> # include <X11/Xlib.h>
@@ -2037,8 +2038,8 @@ fprintf(stderr,"\n");*/
resize_bug_fix = window; resize_bug_fix = window;
#if USE_XFT #if USE_XFT
if (!Fl_X11_Window_Driver::data_for_resize_window_between_screens_.busy && if (!Fl_X11_Window_Driver::data_for_resize_window_between_screens_.busy &&
( W != int(window->w()*s) || H != int(window->h()*s) ) ) { ( ceil(W/s) != window->w() || ceil(H/s) != window->h() ) ) {
window->resize(X/s, Y/s, W/s, H/s); window->resize(X/s, Y/s, ceil(W/s), ceil(H/s));
} else { } else {
window->position(X/s, Y/s); window->position(X/s, Y/s);
} }