Re: GdkImage->visual is NULL on win32



Peter Zelezny writes:
 > It seems that GdkImages' "visual" field is now NULL on Windows
 > (starting from 2.2.3). Prevously I used this to find useful information
 > like RGB mask/shift. Is this an intentional change?

Hmm, probably not. What API do you use to create the GdkImage? I do
notice now that _gdk_win32_copy_to_image() always passes a NULL
GdkVisual to _gdk_image_new_for_depth(). This probably is a bug.  The
corresponding function in the X11 backend uses
gdk_drawable_get_visual(). 

(But the _gdk_win32_copy_to_image() code was the same in GTK+ 2.2.1,
too. But other things have changed related to GdkPixmaps and
GdkImages, so without a sample program it's hard to say exactly how
the changes have affected your code.)

--tml





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