Hello folks,
or should that be Hallo, I get the impression there are only
germans on this list? ;)
Attached is a patch that allows
layer->SetBackgroundMode(layer, DLBM_IMAGE)
to be safely called before layer->SetBackgroundImage(layer, surface).
I cant think of anything that would break because of this and it does seem
to me the more natural order to use the two.
If you intended them to be used in the other order because of the
repaint, maybe a note in the docs and some kind of error message would
be nice.
Thanks,
Till
--
mailto: [EMAIL PROTECTED]
http://www.adam-lilienthal.de/till
? patch
Index: src/display/idirectfbdisplaylayer.c
===================================================================
RCS file: /cvs/directfb/DirectFB/src/display/idirectfbdisplaylayer.c,v
retrieving revision 1.7
diff -u -r1.7 idirectfbdisplaylayer.c
--- src/display/idirectfbdisplaylayer.c 2001/06/06 23:49:39 1.7
+++ src/display/idirectfbdisplaylayer.c 2001/06/17 20:49:22
@@ -141,7 +141,8 @@
if (background_mode != data->layer->bg.mode) {
data->layer->bg.mode = background_mode;
- if (background_mode != DLBM_DONTCARE)
+ if ((background_mode == DLBM_IMAGE && data->layer->bg.image)
+ || background_mode == DLBM_COLOR)
windowstack_repaint_all( data->layer->windowstack );
}