[gtk+/rendering-cleanup: 42/75] gdk: Remove excess variables
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 42/75] gdk: Remove excess variables
- Date: Wed, 4 Aug 2010 22:10:27 +0000 (UTC)
commit df3303588a12f0030af88dbec53c67f99b06be54
Author: Benjamin Otte <otte redhat com>
Date: Tue Jul 20 00:56:46 2010 +0200
gdk: Remove excess variables
gdk/gdkwindow.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index da10253..acf715e 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -3098,7 +3098,6 @@ gdk_window_end_paint (GdkWindow *window)
GdkWindowPaint *paint;
GdkGC *tmp_gc;
GdkRectangle clip_box;
- gint x_offset, y_offset;
cairo_region_t *full_clip;
g_return_if_fail (GDK_IS_WINDOW (window));
@@ -3130,9 +3129,6 @@ gdk_window_end_paint (GdkWindow *window)
tmp_gc = _gdk_drawable_get_scratch_gc (window, FALSE);
- x_offset = -private->abs_x;
- y_offset = -private->abs_y;
-
if (!paint->uses_implicit)
{
cairo_t *cr;
@@ -3144,7 +3140,7 @@ gdk_window_end_paint (GdkWindow *window)
cr = gdk_cairo_create (private->impl);
gdk_cairo_set_source_pixmap (cr, paint->pixmap, 0, 0);
- cairo_translate (cr, - x_offset, - y_offset);
+ cairo_translate (cr, private->abs_x, private->abs_y);
gdk_cairo_region (cr, full_clip);
cairo_fill (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]