[gimp] app: make the first image jump to the center of the canvas before rendering



commit 3af1fff5afacbc6a3158552663d24f0497a1be46
Author: Michael Natterer <mitch gimp org>
Date:   Tue Jun 17 23:29:24 2014 +0200

    app: make the first image jump to the center of the canvas before rendering
    
    Make GIMP_DISPLAY_SHELL_FILL_IDLE_PRIORITY a bit higher than
    GIMP_PROJECTION_IDLE_PRIORITY which is the priority of chunk
    rendering.

 app/core/gimpprojection.c      |    6 ++++--
 app/display/gimpdisplayshell.c |    6 ++----
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/app/core/gimpprojection.c b/app/core/gimpprojection.c
index 092b68f..b0df33f 100644
--- a/app/core/gimpprojection.c
+++ b/app/core/gimpprojection.c
@@ -43,8 +43,10 @@
 #include "gimp-log.h"
 
 
-/*  just a bit less than GDK_PRIORITY_REDRAW  */
-#define GIMP_PROJECTION_IDLE_PRIORITY (G_PRIORITY_HIGH_IDLE + 20 + 1)
+/*  just a bit less than GDK_PRIORITY_REDRAW, also see
+ *  GIMP_DISPLAY_SHELL_FILL_IDLE_PRIORITY in gimpdisplayshell.c
+ */
+#define GIMP_PROJECTION_IDLE_PRIORITY (G_PRIORITY_HIGH_IDLE + 20 + 2)
 
 /*  chunk size for one iteration of the chunk renderer  */
 static gint GIMP_PROJECTION_CHUNK_WIDTH  = 256;
diff --git a/app/display/gimpdisplayshell.c b/app/display/gimpdisplayshell.c
index b174a5a..eaca6ef 100644
--- a/app/display/gimpdisplayshell.c
+++ b/app/display/gimpdisplayshell.c
@@ -85,11 +85,9 @@
 #include "gimp-intl.h"
 
 
-/*  halfway between G_PRIORITY_HIGH_IDLE and G_PRIORITY_DEFAULT_IDLE - 1,
- *  so a bit higher than projection construction
+/* a bit higher than projection construction, see gimpprojection.c
  */
-#define GIMP_DISPLAY_SHELL_FILL_IDLE_PRIORITY \
-        ((G_PRIORITY_HIGH_IDLE + G_PRIORITY_DEFAULT_IDLE) / 2 - 1)
+#define GIMP_DISPLAY_SHELL_FILL_IDLE_PRIORITY (G_PRIORITY_HIGH_IDLE + 20 + 1)
 
 
 enum


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]