From e9f7f4ce4999d6a48bb89aae3b9f9b01668f99d3 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 23 Jul 2005 22:10:47 +0000 Subject: 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 --- src/Fl_win32.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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