On Fri, Sep 17, 2010 at 12:19 PM, Mark Kettenis <[email protected]> wrote:
>> From: Jamey Sharp <[email protected]>
>> Date: Fri, 17 Sep 2010 11:48:32 +0200
>>
>> diff --git a/hw/xfree86/modes/xf86Cursors.c b/hw/xfree86/modes/xf86Cursors.c
>> index 6b2ae97..ab07b60 100644
>> --- a/hw/xfree86/modes/xf86Cursors.c
>> +++ b/hw/xfree86/modes/xf86Cursors.c
>> @@ -227,11 +227,7 @@ xf86_set_cursor_colors (ScrnInfoPtr scrn, int bg, int 
>> fg)
>>      CursorPtr                cursor = xf86_config->cursor;
>>      int                      c;
>>      CARD8            *bits = cursor ?
>> -#if XORG_VERSION_CURRENT < XORG_VERSION_NUMERIC(7,0,0,0,0)
>>          dixLookupPrivate(&cursor->devPrivates, CursorScreenKey(screen))
>> -#else
>> -        cursor->devPriv[screen->myNum]
>> -#endif
>
> Wait a moment.  You're keeping the code that's used for *older* Xorg
> versions in favour of the code used in newer versions?

I know it looks that way, but it isn't true. I don't understand what
the ifdef actually means, but the dix function call is definitely the
current API.

Jamey
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to