On Dienstag 05 September 2006 01:17, Alasdair Campbell wrote:
> On 04/09/06, Stefan Lucke <[EMAIL PROTECTED]> wrote:
> > The OSD is broken with DirectFB since field blit has been added to
> > DirectFB-cvs.
> > I know this is very annoying. Currently I'm looking for that.
>
> Good luck! I don't really have many skills to offer in this field, but
> am willing to help in any way.
Ok you can help: please test.
I think I found the bug. My first thought from this morning lead my to the
direction, but it _only_ fixed the OSD drawing and _not_ the shrinked
picture above the downscaled 16:9 rect. This rect is from clear background
operation.
Attached patch fixes both: OSD and clear background.
--
Stefan Lucke
? mga_fix_01.patch
? mga_fix_02.patch
? mga_trace_01.patch
Index: matrox.c
===================================================================
RCS file: /cvs/directfb/DirectFB/gfxdrivers/matrox/matrox.c,v
retrieving revision 1.101
diff -U 3 -r1.101 matrox.c
--- matrox.c 26 Aug 2006 09:34:19 -0000 1.101
+++ matrox.c 5 Sep 2006 16:15:25 -0000
@@ -705,7 +705,8 @@
{
MatroxDriverData *mdrv = (MatroxDriverData*) drv;
MatroxDeviceData *mdev = (MatroxDeviceData*) dev;
-
+ bool prev_blit_fields = mdev->blit_fields;
+
if (state->modified == SMF_ALL) {
mdev->valid = 0;
@@ -896,7 +897,8 @@
break;
}
- if (state->modified & SMF_DESTINATION) {
+ if (prev_blit_fields != mdev->blit_fields ||
+ state->modified & SMF_DESTINATION) {
matrox_set_destination( mdrv, mdev, state->destination );
state->modified |= SMF_CLIP;
}
_______________________________________________
Softdevice-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/softdevice-devel