diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-06-06 18:28:49 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2019-06-06 18:28:49 +0200 |
| commit | 94fffb701ce88adf7398fb37a007a04c08f1ca6f (patch) | |
| tree | 39c02278fa18939ebf7d5df8e1459e5297c086ea /src/Fl_win32.cxx | |
| parent | 50b1c0878085b5f231616d78f1f1775874b1c9ae (diff) | |
Add one argument to Fl_Screen_Driver::read_win_rectangle()
The new argument gives the window to be captured, or NULL to indicate capture
from the current offscreen.
Calling this function becomes easier because less dependent on global variables.
Diffstat (limited to 'src/Fl_win32.cxx')
| -rw-r--r-- | src/Fl_win32.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index bc2cb5d90..d056d71d6 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -2719,14 +2719,14 @@ void Fl_WinAPI_Window_Driver::capture_titlebar_and_borders(Fl_RGB_Image *&top, F // capture the 4 window sides from screen Fl_WinAPI_Screen_Driver *dr = (Fl_WinAPI_Screen_Driver *)Fl::screen_driver(); if (htop) { - top = dr->read_win_rectangle_unscaled(r.left, r.top, r.right - r.left, htop); + top = dr->read_win_rectangle_unscaled(r.left, r.top, r.right - r.left, htop, 0); if (scaling != 1) top->scale(ww, htop / scaling, 0, 1); } if (wsides) { - left = dr->read_win_rectangle_unscaled(r.left, r.top + htop, wsides, h() * scaling); - right = dr->read_win_rectangle_unscaled(r.right - wsides, r.top + htop, wsides, h() * scaling); - bottom = dr->read_win_rectangle_unscaled(r.left, r.bottom - hbottom, ww, hbottom); + left = dr->read_win_rectangle_unscaled(r.left, r.top + htop, wsides, h() * scaling, 0); + right = dr->read_win_rectangle_unscaled(r.right - wsides, r.top + htop, wsides, h() * scaling, 0); + bottom = dr->read_win_rectangle_unscaled(r.left, r.bottom - hbottom, ww, hbottom, 0); if (scaling != 1) { left->scale(wsides, h(), 0, 1); right->scale(wsides, h(), 0, 1); |
