Commit c7e31e34 authored by Anders Carlsson's avatar Anders Carlsson Committed by Anders Carlsson
Browse files

Cast to 32-bit integers when premultiplying, suggested by Keith Packard.

2004-07-28  Anders Carlsson  <andersca@gnome.org>

	* gdk/x11/gdkdrawable-x11.c (gdk_draw_rectangle_alpha_libgtk_only):
	Cast to 32-bit integers when premultiplying, suggested by Keith Packard.
parent a457b26f
2004-07-28 Anders Carlsson <andersca@gnome.org>
* gdk/x11/gdkdrawable-x11.c (gdk_draw_rectangle_alpha_libgtk_only):
Cast to 32-bit integers when premultiplying, suggested by Keith Packard.
2004-07-27 Anders Carlsson <andersca@gnome.org>
* demos/gtk-demo/iconview.c: (do_iconview):
......
2004-07-28 Anders Carlsson <andersca@gnome.org>
* gdk/x11/gdkdrawable-x11.c (gdk_draw_rectangle_alpha_libgtk_only):
Cast to 32-bit integers when premultiplying, suggested by Keith Packard.
2004-07-27 Anders Carlsson <andersca@gnome.org>
* demos/gtk-demo/iconview.c: (do_iconview):
......
2004-07-28 Anders Carlsson <andersca@gnome.org>
* gdk/x11/gdkdrawable-x11.c (gdk_draw_rectangle_alpha_libgtk_only):
Cast to 32-bit integers when premultiplying, suggested by Keith Packard.
2004-07-27 Anders Carlsson <andersca@gnome.org>
* demos/gtk-demo/iconview.c: (do_iconview):
......
2004-07-28 Anders Carlsson <andersca@gnome.org>
* gdk/x11/gdkdrawable-x11.c (gdk_draw_rectangle_alpha_libgtk_only):
Cast to 32-bit integers when premultiplying, suggested by Keith Packard.
2004-07-27 Anders Carlsson <andersca@gnome.org>
* demos/gtk-demo/iconview.c: (do_iconview):
......
......@@ -1511,9 +1511,9 @@ gdk_draw_rectangle_alpha_libgtk_only (GdkDrawable *drawable,
xdisplay = GDK_DISPLAY_XDISPLAY (gdk_drawable_get_display (drawable));
render_color.alpha = alpha;
render_color.red = color->red * render_color.alpha / 0xffff;
render_color.green = color->green * render_color.alpha / 0xffff;
render_color.blue = color->blue * render_color.alpha / 0xffff;
render_color.red = (guint32)color->red * render_color.alpha / 0xffff;
render_color.green = (guint32)color->green * render_color.alpha / 0xffff;
render_color.blue = (guint32)color->blue * render_color.alpha / 0xffff;
XRenderFillRectangle (xdisplay,
PictOpOver, pict, &render_color,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment