[gegl] ui: change preview scale factor to 2 instead of 4



commit 9134ee1819926f3425e36d9c75e09437b785343d
Author: Oyvind Kolas <pippin gimp org>
Date:   Tue Jul 28 15:33:10 2015 +0200

    ui: change preview scale factor to 2 instead of 4
    
    This value would more ideally be determined through profiling / knowledge of
    display ppi.

 bin/mrg-ui.c |   21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)
---
diff --git a/bin/mrg-ui.c b/bin/mrg-ui.c
index d3c36b2..0906fee 100644
--- a/bin/mrg-ui.c
+++ b/bin/mrg-ui.c
@@ -16,6 +16,11 @@
  * Copyright (C) 2015 Øyvind Kolås pippin gimp org
  */
 
+/* The code in this file is an image viewer/editor written using microraptor
+ * gui and GEGL.
+ */
+
+
 #define _BSD_SOURCE
 #define _DEFAULT_SOURCE
 
@@ -172,16 +177,22 @@ int mrg_ui_main (int argc, char **argv)
   Mrg *mrg = mrg_new (1024, 768, NULL);
   State o = {NULL,};
 #ifdef USE_MIPMAPS
+  /* to use this UI comfortably, mipmap rendering needs to be enabled, there are
+   * still a few glitches, but for basic full frame un-panned, un-cropped use it
+   * already works well.
+   */
   g_setenv ("GEGL_MIPMAP_RENDERING", "1", TRUE);
 #endif
+
+/* we want to see the speed gotten if the fastest babl conversions we have were more accurate */
   g_setenv ("BABL_TOLERANCE", "0.1", TRUE);
 
   gegl_init (&argc, &argv);
-  o.gegl           = gegl_node_new ();
-  o.mrg            = mrg;
-  o.scale          = 1.0;
-  o.render_quality = 1.0;
-  o.preview_quality = 4.0;
+  o.gegl            = gegl_node_new ();
+  o.mrg             = mrg;
+  o.scale           = 1.0;
+  o.render_quality  = 1.0;
+  o.preview_quality = 2.0;
 
   if (access (argv[1], F_OK) != -1)
     o.path = strdup (argv[1]);


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