mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 06:10:21 +00:00
gdk: Remove excess variables
This commit is contained in:
parent
3df6726656
commit
a6fcc75774
@ -3098,7 +3098,6 @@ gdk_window_end_paint (GdkWindow *window)
|
|||||||
GdkWindowPaint *paint;
|
GdkWindowPaint *paint;
|
||||||
GdkGC *tmp_gc;
|
GdkGC *tmp_gc;
|
||||||
GdkRectangle clip_box;
|
GdkRectangle clip_box;
|
||||||
gint x_offset, y_offset;
|
|
||||||
cairo_region_t *full_clip;
|
cairo_region_t *full_clip;
|
||||||
|
|
||||||
g_return_if_fail (GDK_IS_WINDOW (window));
|
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);
|
tmp_gc = _gdk_drawable_get_scratch_gc (window, FALSE);
|
||||||
|
|
||||||
x_offset = -private->abs_x;
|
|
||||||
y_offset = -private->abs_y;
|
|
||||||
|
|
||||||
if (!paint->uses_implicit)
|
if (!paint->uses_implicit)
|
||||||
{
|
{
|
||||||
cairo_t *cr;
|
cairo_t *cr;
|
||||||
@ -3144,7 +3140,7 @@ gdk_window_end_paint (GdkWindow *window)
|
|||||||
|
|
||||||
cr = gdk_cairo_create (private->impl);
|
cr = gdk_cairo_create (private->impl);
|
||||||
gdk_cairo_set_source_pixmap (cr, paint->pixmap, 0, 0);
|
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);
|
gdk_cairo_region (cr, full_clip);
|
||||||
cairo_fill (cr);
|
cairo_fill (cr);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user