summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-07-23 22:10:47 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-07-23 22:10:47 +0000
commite9f7f4ce4999d6a48bb89aae3b9f9b01668f99d3 (patch)
tree802cce375601686d2bd07e1017f9e8ae1b81c81a
parente2cc046d0987ab85057a934c6b1851271ea3895a (diff)
Silly typo would position new windows, that touched the right screen border, all the way to the left, instead of just left of the screen's right border.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4450 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--CHANGES2
-rw-r--r--src/Fl_win32.cxx2
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 9eacc1a97..1fa076b06 100644
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,8 @@ CHANGES IN FLTK 1.1.7
- Documentation fixes (STR #648, STR #692, STR #730, STR
#744, STR #745, STR #942)
+ - New windows touching the right screen border would be
+ positioned all the way to the left (STR #898)
- Made pie drawing size for WIN32 and OS X the same as X11 (STR #905)
- Fixed OS X issue with OpenGL windows inside of Tabs (STR #602)
- Fluid Code Editor would occasionally not draw the last character
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index 81cd02819..ab9f1d5e5 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -974,7 +974,7 @@ int Fl_X::fake_X_wm(const Fl_Window* w,int &X,int &Y, int &bt,int &bx, int &by)
//Make border's lower right corner visible
int scr_x, scr_y, scr_w, scr_h;
Fl::screen_xywh(scr_x, scr_y, scr_w, scr_h);
- if (scr_x+scr_w < X+W) X = scr_x+scr_x- W;
+ if (scr_x+scr_w < X+W) X = scr_x+scr_w - W;
if (scr_y+scr_h < Y+H) Y = scr_y+scr_h - H;
//Make border's upper left corner visible
if (X<scr_x) X = scr_x;