On 04/11/2007, Asaf <[EMAIL PROTECTED]> wrote:

can you please send me the code ?
> I will try to integrate the changes.
> I've already ran standart xorg and everything
> works, even XV_HUE.
> changes are only at kernel side driver, or also
> at gfxdrivers/unichrome ?
> thanks


OK, it's only taken me 2 months to reply to this - sorry.

The code you need can be found in the Unichrome X driver.  Download the code
from http://unichrome.sf.net and look in the file via_video.c.  The function
viaCalculateVideoColor contains the correct calculations for the two
register values you need.

In DirectFB, you need to alter the function uc_ovl_map_adjustment in
gfxdrivers/unichome/uc_ovl_hwmap.c to do the same thing and then re-enable
the adjustment feature by uncommenting a few bits and pieces in
uc_overlay.c.

I did this a while back and it was pretty straightforward.  Unfortunately, I
can't find the result so you'll have to do it again.

Cheers,

Mark
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to