Avoid flicker by resetting matrix
authorJoachim Breitner <mail@joachim-breitner.de>
Thu, 27 Nov 2008 13:30:36 +0000 (13:30 +0000)
committerJoachim Breitner <mail@joachim-breitner.de>
Thu, 27 Nov 2008 13:30:36 +0000 (13:30 +0000)
sm.c

diff --git a/sm.c b/sm.c
index 8f089f1..e8ca228 100644 (file)
--- a/sm.c
+++ b/sm.c
@@ -142,6 +142,12 @@ static void redraw() {
 
                        gdk_draw_layout(draw->window, gc,
                                (w2-(s*rw1))/2, (h2-(s*rh1))/2,layout);
+                       
+                       // Reset matrix
+                       PangoMatrix matrix2 = PANGO_MATRIX_INIT;
+                       pango_context_set_matrix (context, &matrix2);
+                       pango_layout_context_changed (layout);
+
                        hq(TRUE, FALSE);
                }
        }