[gnome-shell] st-drawing-area: Avoid unnecessary repaints
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] st-drawing-area: Avoid unnecessary repaints
- Date: Fri, 15 Oct 2010 10:32:00 +0000 (UTC)
commit 42c736614c7441c43ac04512af2565cd845fb686
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Oct 15 09:18:37 2010 +0200
st-drawing-area: Avoid unnecessary repaints
StDrawingArea uses the member variable needs_repaint to keep track
of whether it needs repainting. The variable is set to TRUE correctly,
e.g. on allocation or style changes - alas, it is never set to FALSE,
resulting in the area being repainted continuously.
https://bugzilla.gnome.org/show_bug.cgi?id=632197
src/st/st-drawing-area.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/st/st-drawing-area.c b/src/st/st-drawing-area.c
index fa99d11..a10da15 100644
--- a/src/st/st-drawing-area.c
+++ b/src/st/st-drawing-area.c
@@ -115,6 +115,7 @@ st_drawing_area_paint (ClutterActor *self)
surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, width, height);
priv->context = cairo_create (surface);
priv->in_repaint = TRUE;
+ priv->needs_repaint = FALSE;
g_signal_emit ((GObject*)area, st_drawing_area_signals[REPAINT], 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]