diff options
author | Owen Taylor <otaylor@redhat.com> | 2005-05-09 22:54:10 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2005-05-09 22:54:10 +0000 |
commit | 485fd851791e731e3b919a78033c44f5ec5e1081 (patch) | |
tree | fdb4b4524a5af9238645003346a6ef476e3e44ae /gdk/gdkscreen.h | |
parent | e899aa852a9ac34558e689480c02c90e8f4d02cb (diff) | |
download | gtk+-485fd851791e731e3b919a78033c44f5ec5e1081.tar.gz |
Fill in unused bits so they can be used for the depth-32 target case.
2005-05-09 Owen Taylor <otaylor@redhat.com>
* gdk/gdkrgb.c (gdk_rgb_convert_0888_br, gdk_rgb_convert_8880_br):
Fill in unused bits so they can be used for the depth-32 target case.
Rewrite so that that gives a marginal speedup rather than a
marginal slowdown. (on x86)
* gdk/gdkscreen.h gdk/x11/gdkscreen-x11.[ch] gdk/x11/gdkvisual-x11.c:
Add gdk_screen_get_rgba_colormap/visual to get a visual for
windows with an alpha channel, if one exists.
* gdk/win32/gdkscreen-win32.c gdk/linux-fb/gdkscreen-fb.c:
Stub out gdk_screen_get_rgba_colormap/visual.
* gdk/x11/gdkcolor-x11.c (gdk_colormap_alloc_colors): computation of
"unused" wasn't right for depth == 32, since it depended on
shifting by 32.
* gdk/gdkrgb.c: Fill in alpha bits with 1s. (Based on patch from
Keith Packard,
http://mail.gnome.org/archives/gtk-devel-list/2004-June/msg00080.html)
* gdk/x11/gdkdrawable-x11.c (gdk_x11_drawable_get_picture):
Implement again, without using Xft.
* tests/testgtk.c: Add a test for windows with an alpha channel.
Diffstat (limited to 'gdk/gdkscreen.h')
-rw-r--r-- | gdk/gdkscreen.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdk/gdkscreen.h b/gdk/gdkscreen.h index f527099f44..5a27cbe232 100644 --- a/gdk/gdkscreen.h +++ b/gdk/gdkscreen.h @@ -63,6 +63,9 @@ GdkColormap* gdk_screen_get_system_colormap (GdkScreen *screen); GdkVisual* gdk_screen_get_system_visual (GdkScreen *screen); GdkColormap *gdk_screen_get_rgb_colormap (GdkScreen *screen); GdkVisual * gdk_screen_get_rgb_visual (GdkScreen *screen); +GdkColormap *gdk_screen_get_rgba_colormap (GdkScreen *screen); +GdkVisual * gdk_screen_get_rgba_visual (GdkScreen *screen); + GdkWindow * gdk_screen_get_root_window (GdkScreen *screen); GdkDisplay * gdk_screen_get_display (GdkScreen *screen); |