[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#524670: XF86VidModeGetGammaRamp errors



Hi,
kibi@debian.org (2010-03-03 at 0339.01 +0100):
> I fear you didn't receive the following message:

No, and I had forgotten completly about this bug.

> Kevin Shanahan <kmshanah@disenchant.net> (13/09/2009):
> > Hi,
> > 
> > I came up against this error too. Just thought I'd let you know that
> > the reason you are seeing this error is that the new xserver breaks
> > the assumption a lot of apps make that the gamma ramp is always of
> > size 256.
> > 
> > Try querying the size using XF86VidModeGetGammaRampSize first and
> > then use a buffer of the returned size to get and set the gamma.
> 
> That sounds like it's not a bug in the end?

To avoid messing with the arrays I tried a dirty and quick hack based
in the suggested query (rewrite the define after printing what was
returned). Well, it says 256 so the define is unchanged. No idea why
it failed for some time, maybe then the ramp was other size in the
meanwhile (bigger to support all cards, then back to what each card
really does?). Anyway I will try to improve the code so the define can
go away.

Thanks for the tip and the reminder.

GSR
 



Reply to: