From 92bc6d4175276390056746b3424bbb51b6131660 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 29 Nov 2000 13:13:20 +0000 Subject: [PATCH] If you pass width or height == 0 to gdk_window_clear_area they should be 2000-11-29 Alexander Larsson * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area): If you pass width or height == 0 to gdk_window_clear_area they should be calculated from the window size. --- ChangeLog | 6 ++++++ ChangeLog.pre-2-0 | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-2 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gdk/linux-fb/gdkwindow-fb.c | 6 ++++++ 8 files changed, 48 insertions(+) diff --git a/ChangeLog b/ChangeLog index e52ac1b44c..eb64324102 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-11-29 Alexander Larsson + + * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area): + If you pass width or height == 0 to gdk_window_clear_area they + should be calculated from the window size. + 2000-11-29 Alexander Larsson * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index e52ac1b44c..eb64324102 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +2000-11-29 Alexander Larsson + + * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area): + If you pass width or height == 0 to gdk_window_clear_area they + should be calculated from the window size. + 2000-11-29 Alexander Larsson * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index e52ac1b44c..eb64324102 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2000-11-29 Alexander Larsson + + * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area): + If you pass width or height == 0 to gdk_window_clear_area they + should be calculated from the window size. + 2000-11-29 Alexander Larsson * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index e52ac1b44c..eb64324102 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +2000-11-29 Alexander Larsson + + * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area): + If you pass width or height == 0 to gdk_window_clear_area they + should be calculated from the window size. + 2000-11-29 Alexander Larsson * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index e52ac1b44c..eb64324102 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +2000-11-29 Alexander Larsson + + * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area): + If you pass width or height == 0 to gdk_window_clear_area they + should be calculated from the window size. + 2000-11-29 Alexander Larsson * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index e52ac1b44c..eb64324102 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +2000-11-29 Alexander Larsson + + * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area): + If you pass width or height == 0 to gdk_window_clear_area they + should be calculated from the window size. + 2000-11-29 Alexander Larsson * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index e52ac1b44c..eb64324102 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2000-11-29 Alexander Larsson + + * gdk/linux-fb/gdkwindow-fb.c (_gdk_windowing_window_clear_area): + If you pass width or height == 0 to gdk_window_clear_area they + should be calculated from the window size. + 2000-11-29 Alexander Larsson * gdk/linux-fb/gdkinput-ps2.c (move_pointer): If there is diff --git a/gdk/linux-fb/gdkwindow-fb.c b/gdk/linux-fb/gdkwindow-fb.c index 05a902f1dd..c5c416e835 100644 --- a/gdk/linux-fb/gdkwindow-fb.c +++ b/gdk/linux-fb/gdkwindow-fb.c @@ -1012,6 +1012,12 @@ _gdk_windowing_window_clear_area (GdkWindow *window, bgpm = GDK_WINDOW_P (window)->bg_pixmap; + if (width == 0) + width = GDK_DRAWABLE_IMPL_FBDATA (window)->width - x; + + if (height == 0) + height = GDK_DRAWABLE_IMPL_FBDATA (window)->height - y; + #if 0 for (relto = window; bgpm == GDK_PARENT_RELATIVE_BG && relto; relto = (GdkWindow *)GDK_WINDOW_P(relto)->parent) bgpm = GDK_WINDOW_P (relto)->bg_pixmap;