summaryrefslogtreecommitdiff
path: root/src/Fl_Screen_Driver.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-04-03 08:36:19 +0000
committerManolo Gouy <Manolo>2016-04-03 08:36:19 +0000
commitb3af5591ca7f247b1233ce733c0c27fe9e635f1a (patch)
tree99fd51b9634d453f3f90db935f1615199ef74075 /src/Fl_Screen_Driver.cxx
parent9a97fc37fd164225954714d2f68748a8a41a6d08 (diff)
Stop using fl_read_image() to read window decoration.
Use instead an API internal to each platform code base. fl_read_image() is used only for its documented feature of reading inside the current window or an offscreen buffer. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11518 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Screen_Driver.cxx')
-rw-r--r--src/Fl_Screen_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Screen_Driver.cxx b/src/Fl_Screen_Driver.cxx
index f2071d3cc..a444e293f 100644
--- a/src/Fl_Screen_Driver.cxx
+++ b/src/Fl_Screen_Driver.cxx
@@ -152,7 +152,7 @@ void Fl_Screen_Driver::compose_reset() {
}
uchar *Fl_Screen_Driver::read_image(uchar *p, int X, int Y, int w, int h, int alpha) {
- if (w < 0 || fl_find(fl_window) == 0) { // read from off_screen buffer or title bar and frame
+ if (fl_find(fl_window) == 0) { // read from off_screen buffer
return read_win_rectangle(p, X, Y, w, h, alpha);
}
Fl_RGB_Image *img = traverse_to_gl_subwindows(Fl_Window::current(), p, X, Y, w, h, alpha, NULL);