DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L1716
Version: 1.1-current


Here is full description with solution: 
 - when widget with rgba image (blended against it's background) is moved
outside parent bounds, but partialy visible, X11 will yield "X_GetImage:
BadMatch (invalid parameter attributes) 0x0", and background will be
filled with garbage. 

This is since XGetImage requires that specified drawable rectangle be
fully visible on the screen and wholly contained within the outside edges
of the window.

Solution will be (fl_read_image.cxx):
 if (!image) {
    if(X < 0) X = Fl::x();            // added
    if(Y < 0) Y = Fl::y();            // added
    if(X+w > Fl::w()) X = Fl::w()-w;  // added, alternatives ?
    if(Y+h > Fl::h()) Y = Fl::h()-h;  // added, alternatives ?

    image = XGetImage(fl_display, fl_window, X, Y, w, h, AllPlanes,
ZPixmap);
 }


Link: http://www.fltk.org/str.php?L1716
Version: 1.1-current

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to