[gtk+] Implement _gdk_win32_window_queue_translation()
- From: Hans Breuer <hans src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+] Implement _gdk_win32_window_queue_translation()
- Date: Mon, 13 Jul 2009 07:52:31 +0000 (UTC)
commit e96c161643038ab91b4d5293b9cfa9bfeea59093
Author: Hans Breuer <hans breuer org>
Date: Sun Jul 12 21:26:29 2009 +0200
Implement _gdk_win32_window_queue_translation()
gdk/win32/gdkwindow-win32.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c
index b43ab19..91a70e0 100644
--- a/gdk/win32/gdkwindow-win32.c
+++ b/gdk/win32/gdkwindow-win32.c
@@ -3625,7 +3625,11 @@ _gdk_win32_window_queue_translation (GdkWindow *window,
gint dy)
{
/* TODO: Get current updateregion, move any part of it that intersects area by dx,dy */
- g_print ("queue_translation\n");
+ HRGN hrgn = _gdk_win32_gdkregion_to_hrgn (area, dx, dy);
+
+ API_CALL (InvalidateRgn, (GDK_WINDOW_HWND (window), hrgn, TRUE));
+
+ DeleteObject (hrgn);
}
static void
@@ -3637,7 +3641,7 @@ gdk_win32_input_shape_combine_region (GdkWindow *window,
if (GDK_WINDOW_DESTROYED (window))
return;
/* CHECK: are these really supposed to be the same? */
- return gdk_win32_window_shape_combine_region (window, shape_region, offset_x, offset_y);
+ gdk_win32_window_shape_combine_region (window, shape_region, offset_x, offset_y);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]