|
|
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR Pending]
Link: https://www.fltk.org/str.php?L3534
Version: 1.4-current
Fix Version: 1.4-current
Git Commit: 8f142b938ae5bbbb5a7677f1a7e71ee6308a7589
The doc says
If both \p W and \p H are 0 the image is repeated as often as necessary
to fill the entire window, unless there is a valid clip region. If you
want to fill only one particular widget's background, then you should
either set a clip region in your draw() method or use the label alignment
flags \p FL_ALIGN_INSIDE|FL_ALIGN_CLIP to make sure the image is clipped.
From this, my understanding is that, when W and H are initially 0,
it's correct to set:
W = Fl_Window::current()->w();
H = Fl_Window::current()->h();
X = Y = 0;
also if only a widget is to be painted because the limitation
to the widget's area is done by the clip mechanism, not by setting
X, Y, W and H adequately for the widget.
Link: https://www.fltk.org/str.php?L3534
Version: 1.4-current
Fix Version: 1.4-current
Git Commit: 8f142b938ae5bbbb5a7677f1a7e71ee6308a7589
[ Direct Link to Message ] | |
|
| |