diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-11-01 14:32:07 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-11-01 14:32:07 +0100 |
| commit | ecdb386f3da9d70c45c601d3456c2e32d95a3863 (patch) | |
| tree | 86031cf7b43f8c013dd97caa444e32585d0ebedf /src/drivers/X11/Fl_X11_Screen_Driver.cxx | |
| parent | 04ec829bfba341038150beab718c2d090efdb42b (diff) | |
Fix HiDPI support under X11 to read/draw RGB image from/to display.
Diffstat (limited to 'src/drivers/X11/Fl_X11_Screen_Driver.cxx')
| -rw-r--r-- | src/drivers/X11/Fl_X11_Screen_Driver.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/drivers/X11/Fl_X11_Screen_Driver.cxx b/src/drivers/X11/Fl_X11_Screen_Driver.cxx index 0739cf974..b8056ff0d 100644 --- a/src/drivers/X11/Fl_X11_Screen_Driver.cxx +++ b/src/drivers/X11/Fl_X11_Screen_Driver.cxx @@ -796,8 +796,6 @@ Fl_RGB_Image *Fl_X11_Screen_Driver::read_win_rectangle(int X, int Y, int w, int sx *= s; sy *= s; sw *= s; sh *= s; } if (win && !allow_outside && int(s) != s) { - ws = (w+1)*s-1; - hs = (h+1)*s-1; if (Xs + ws >= int(win->w()*s)) ws = win->w()*s - Xs -1; if (Ys + hs >= int(win->h()*s)) hs = win->h()*s - Ys -1; } |
