Don't draw anything if width or height is zero. Don't print a warning if
* gdk/win32/gdkdraw.c (gdk_draw_arc): Don't draw anything if width or height is zero. Don't print a warning if Pie or Arc fails, they always fail (?) for very narrow ellipses. * gdk/win32/gdkdraw.c (gdk_draw_pixmap): Call InvalidateRgn for the part or the destination window corresponding to source area outside of the source drawable's boundary. * gdk/win32/gdkdraw.c (gdk_draw_lines, gdk_draw_polygon): Don't do anything if less than two points. * gdk/win32/gdkselection.c (gdk_selection_owner_get): Always return NULL. Gtk cut-and-paste inside a single program works better this way. (It always gets the clipboard contents from Windows, not from its own copy, which is cleared anyway. I can't say I fully understand what happens... Emulating the X selection and property stuff is a bit of a mess.) * gdk/win32/gdkevents.c * gdk/win32/gdkproperty.c: A bt more verbose logging. * gdk/win32/gdkregion.c: Fix some memory leaks (temporary regions that never got deleted). Revamp gdk_region_shrink. * gdk/win32/gdkregion.c: Fix memory leak, delete temporary regions after use. * gtk/gtk.def: Add some missing entry points. * gtk/gtkrc.c: Strip trailing directory separator from pixmap path component.
This commit is contained in:
@ -2325,9 +2325,12 @@ gdk_event_translate (GdkEvent *event,
|
||||
if (window_private->bg_type == GDK_WIN32_BG_PIXEL)
|
||||
{
|
||||
COLORREF bg;
|
||||
GDK_NOTE (EVENTS, g_print ("...BG_PIXEL %s\n",
|
||||
gdk_color_to_string (&window_private->bg_pixel)));
|
||||
GetClipBox (hdc, &rect);
|
||||
GDK_NOTE (EVENTS, g_print ("...%dx%d@+%d+%d BG_PIXEL %s\n",
|
||||
rect.right - rect.left,
|
||||
rect.bottom - rect.top,
|
||||
rect.left, rect.top,
|
||||
gdk_color_to_string (&window_private->bg_pixel)));
|
||||
#ifdef MULTIPLE_WINDOW_CLASSES
|
||||
bg = PALETTEINDEX (window_private->bg_pixel.pixel);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user