Re: Need help with GdkCursors
- From: Owen Taylor <otaylor redhat com>
- To: john giorgio hart bbk ac uk
- Cc: gtk-list redhat com
- Subject: Re: Need help with GdkCursors
- Date: 28 Apr 1999 10:36:56 -0400
john@giorgio.hart.bbk.ac.uk writes:
> GdkCursor *
> make_data_cursor( GdkWindow *window,
> guchar *src_bits, guchar *msk_bits, int w, int h, int x, int y )
[...]
> src = gdk_bitmap_create_from_data( window,
> (const char *) src_bits, w, h );
> msk = gdk_bitmap_create_from_data( window,
> (const char *) msk_bits, w, h );
As a sidenote, since that since these are bitmaps we don't
have to worry about different visuals or bit depths,
so using NULL for the window argument should be fine.,
(It will only break if GTK+ is one day extended to handle
multiple displays)
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]