summaryrefslogtreecommitdiff
path: root/gdk/win32/gdkgeometry-win32.c
diff options
context:
space:
mode:
authorHans Breuer <hans@breuer.org>2002-02-10 13:18:51 +0000
committerHans Breuer <hans@src.gnome.org>2002-02-10 13:18:51 +0000
commit6d33d1c7e3d9782c22a85ed972c0745db0333791 (patch)
tree656df1715de144fdf8499fa21a1ec2e83a50be4f /gdk/win32/gdkgeometry-win32.c
parentf42f2a646e44c917fd0a435a7818d18eb513503d (diff)
downloadgtk+-6d33d1c7e3d9782c22a85ed972c0745db0333791.tar.gz
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
Diffstat (limited to 'gdk/win32/gdkgeometry-win32.c')
-rw-r--r--gdk/win32/gdkgeometry-win32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdk/win32/gdkgeometry-win32.c b/gdk/win32/gdkgeometry-win32.c
index 1ed7b343ec..25ce720a6a 100644
--- a/gdk/win32/gdkgeometry-win32.c
+++ b/gdk/win32/gdkgeometry-win32.c
@@ -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))