mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 15:32:12 +08:00
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:
+3
-2
@@ -44,6 +44,7 @@
|
||||
# include <unistd.h>
|
||||
# include <time.h>
|
||||
# include <sys/time.h>
|
||||
# include <math.h>
|
||||
# include <X11/Xmd.h>
|
||||
# include <X11/Xlocale.h>
|
||||
# include <X11/Xlib.h>
|
||||
@@ -2037,8 +2038,8 @@ fprintf(stderr,"\n");*/
|
||||
resize_bug_fix = window;
|
||||
#if USE_XFT
|
||||
if (!Fl_X11_Window_Driver::data_for_resize_window_between_screens_.busy &&
|
||||
( W != int(window->w()*s) || H != int(window->h()*s) ) ) {
|
||||
window->resize(X/s, Y/s, W/s, H/s);
|
||||
( ceil(W/s) != window->w() || ceil(H/s) != window->h() ) ) {
|
||||
window->resize(X/s, Y/s, ceil(W/s), ceil(H/s));
|
||||
} else {
|
||||
window->position(X/s, Y/s);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user