Yes, my change on 2002-11-14 to gdkpixmap-win32.c:gdk_pixmap_new() broke

2002-11-19  Tor Lillqvist  <tml@iki.fi>

	* gdk/win32/gdkwindow-win32.c (gdk_window_new): Yes, my change
	on 2002-11-14 to gdkpixmap-win32.c:gdk_pixmap_new() broke
	palettized (256-colour) display slightly: For some reason
	GdkWindowObject::depth of GDK_INPUT_ONLY windows now needs to
	be set to the visual's depth, even if the X11 backend sets it
	to zero. Otherwise, on a palettized display, gdk_pixmap_new()
	when called from gdk_window_begin_paint_region() would get
	zero from gdk_drawable_get_depth(), and fail.
This commit is contained in:
Tor Lillqvist
2002-11-19 03:24:30 +00:00
committed by Tor Lillqvist
parent 8d16cc8c49
commit ca353b7fa2
7 changed files with 67 additions and 1 deletions

View File

@@ -1,3 +1,14 @@
2002-11-19 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.c (gdk_window_new): Yes, my change on
2002-11-14 to gdkpixmap-win32.c:gdk_pixmap_new() broke palettized
(256-colour) display slightly: For some reason
GdkWindowObject::depth of GDK_INPUT_ONLY windows now needs to be
set to the visual's depth, even if the X11 backend sets it to
zero. Otherwise, on a palettized display, gdk_pixmap_new() when
called from gdk_window_begin_paint_region() would get zero from
gdk_drawable_get_depth(), and fail.
2002-11-15 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkprivate-win32.h

View File

@@ -1,3 +1,14 @@
2002-11-19 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.c (gdk_window_new): Yes, my change on
2002-11-14 to gdkpixmap-win32.c:gdk_pixmap_new() broke palettized
(256-colour) display slightly: For some reason
GdkWindowObject::depth of GDK_INPUT_ONLY windows now needs to be
set to the visual's depth, even if the X11 backend sets it to
zero. Otherwise, on a palettized display, gdk_pixmap_new() when
called from gdk_window_begin_paint_region() would get zero from
gdk_drawable_get_depth(), and fail.
2002-11-15 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkprivate-win32.h

View File

@@ -1,3 +1,14 @@
2002-11-19 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.c (gdk_window_new): Yes, my change on
2002-11-14 to gdkpixmap-win32.c:gdk_pixmap_new() broke palettized
(256-colour) display slightly: For some reason
GdkWindowObject::depth of GDK_INPUT_ONLY windows now needs to be
set to the visual's depth, even if the X11 backend sets it to
zero. Otherwise, on a palettized display, gdk_pixmap_new() when
called from gdk_window_begin_paint_region() would get zero from
gdk_drawable_get_depth(), and fail.
2002-11-15 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkprivate-win32.h

View File

@@ -1,3 +1,14 @@
2002-11-19 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.c (gdk_window_new): Yes, my change on
2002-11-14 to gdkpixmap-win32.c:gdk_pixmap_new() broke palettized
(256-colour) display slightly: For some reason
GdkWindowObject::depth of GDK_INPUT_ONLY windows now needs to be
set to the visual's depth, even if the X11 backend sets it to
zero. Otherwise, on a palettized display, gdk_pixmap_new() when
called from gdk_window_begin_paint_region() would get zero from
gdk_drawable_get_depth(), and fail.
2002-11-15 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkprivate-win32.h

View File

@@ -1,3 +1,14 @@
2002-11-19 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.c (gdk_window_new): Yes, my change on
2002-11-14 to gdkpixmap-win32.c:gdk_pixmap_new() broke palettized
(256-colour) display slightly: For some reason
GdkWindowObject::depth of GDK_INPUT_ONLY windows now needs to be
set to the visual's depth, even if the X11 backend sets it to
zero. Otherwise, on a palettized display, gdk_pixmap_new() when
called from gdk_window_begin_paint_region() would get zero from
gdk_drawable_get_depth(), and fail.
2002-11-15 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkprivate-win32.h

View File

@@ -1,3 +1,14 @@
2002-11-19 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkwindow-win32.c (gdk_window_new): Yes, my change on
2002-11-14 to gdkpixmap-win32.c:gdk_pixmap_new() broke palettized
(256-colour) display slightly: For some reason
GdkWindowObject::depth of GDK_INPUT_ONLY windows now needs to be
set to the visual's depth, even if the X11 backend sets it to
zero. Otherwise, on a palettized display, gdk_pixmap_new() when
called from gdk_window_begin_paint_region() would get zero from
gdk_drawable_get_depth(), and fail.
2002-11-15 Tor Lillqvist <tml@iki.fi>
* gdk/win32/gdkprivate-win32.h

View File

@@ -510,7 +510,7 @@ gdk_window_new (GdkWindow *parent,
else
{
dwExStyle = WS_EX_TRANSPARENT;
private->depth = 0;
private->depth = visual->depth;
private->input_only = TRUE;
draw_impl->colormap = gdk_colormap_get_system ();
gdk_colormap_ref (draw_impl->colormap);