Re: [gtk-list] Cursors with gtk/gdk




On Thu, 5 Nov 1998, Eric Harlow wrote:
> 
> ** ERROR **: BadMatch (invalid parameter attributes)
>   serial 131 error_code 8 request_code 93 minor_code 0
> 
> 1 - how do I track down such an error?

XCreatePixmapCursor gives BadMatch if your pixmap is not depth 1, your
mask is a different size from the pixmap, or the hotspot is not within the
pixmap. So one of those could be it.

> 2 - does someone have sample code of creating a cursor from pixmap
> data that works so I can figure out what I'm doing wrong?
> 

Gnumeric has some examples of this.

Havoc




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