don't reduce the scroll rect size by the scroll amount
2002-02-10 Hans Breuer <hans@breuer.org> * gdk/win32/gdkgeometry-win32.c : don't reduce the scroll rect size by the scroll amount * gdk/win32/gdkwindow-win32.c * gdk/win32/gdkselection-win32.c : added some casts to make it compile with msvc's strict type checking * gtk/fnmatch.c : #include <ctype.h> again for tolower prototype. The fnmatch() code assumes to be in the crt locale though it is feeded by utf8 strings from gtkfilesel.c * gtk/gtkfilesel.c : let ->cmpl_text be a strdup managed by _CompletionDir instead of referencing already freed memory * gtk/gtktooltips.c (gtk_tooltips_init) : fix typo to gtk_rc_parse_string (theDefaultTooltipColor) once as it was intended * tests/makefile.msc : added more tests * tests/testgtk.c (create_list) : don't try to load gtkenums.h from the current directory use ../gtk/gtkenums.h instead
This commit is contained in:
@ -127,8 +127,8 @@ gdk_window_copy_area_scroll (GdkWindow *window,
|
||||
if (dest_rect->width > 0 && dest_rect->height > 0)
|
||||
{
|
||||
RECT clipRect;
|
||||
clipRect.left = dest_rect->x - dx;
|
||||
clipRect.top = dest_rect->y - dy;
|
||||
clipRect.left = dest_rect->x;
|
||||
clipRect.top = dest_rect->y;
|
||||
clipRect.right = clipRect.left + dest_rect->width;
|
||||
clipRect.bottom = clipRect.top + dest_rect->height;
|
||||
|
||||
@ -137,7 +137,7 @@ gdk_window_copy_area_scroll (GdkWindow *window,
|
||||
if (!ScrollWindowEx (GDK_WINDOW_HWND (window),
|
||||
dx, dy, /* in: scroll offsets */
|
||||
NULL, /* in: scroll rect, NULL == entire client area */
|
||||
&clipRect, /* in: restrict to, XXX: really want this ?? */
|
||||
&clipRect, /* in: restrict to */
|
||||
NULL, /* out: update region */
|
||||
NULL, /* out: update rect */
|
||||
SW_INVALIDATE))
|
||||
|
||||
Reference in New Issue
Block a user