Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2005:
[Freeciv-Dev] Re: (PR#12430) xaw client not starting up
Home

[Freeciv-Dev] Re: (PR#12430) xaw client not starting up

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] Re: (PR#12430) xaw client not starting up
From: "Vijay Kiran Kamuju" <infyquest@xxxxxxxxx>
Date: Wed, 16 Mar 2005 21:44:39 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12430 >

hi,

i am trying to make what you have written, using XcursorImageLoadCursor

i could not find any example code to convert a pixmap to ximage

and i am new to xwindows programming

can i use XpmCreateDatafromPixmap and XpmCreateImagefromData

to convert a pixmap to ximage

or is there any other simpler method

bye,
vijay

On Tue, 15 Mar 2005 21:15:15 -0800, Jason Short
<jdorje@xxxxxxxxxxxxxxxxxxxxx> wrote:
> 
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=12430 >
> 
> According to some docs I found
> 
> http://tronche.com/gui/x/xlib/pixmap-and-cursor/XCreatePixmapCursor.html
> 
> the cursor bitmaps must be in a very specific form.  The pixmap/mask
> form of the sprite is quite wrong and will need to be hand-converted.
> Alternately/better this code should be changed to use
> XcursorImageLoadCursor (which is what GDK does).  See
> create_cursor_image() and gdk_cursor_new_from_pixbuf() in the attached file.
> 
> -jason
> 
> 
>





[Prev in Thread] Current Thread [Next in Thread]