diff options
| -rw-r--r-- | src/setup.c | 7 | ||||
| -rw-r--r-- | templates/fluid/fluid.xml | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/src/setup.c b/src/setup.c index 85c7326..9dedd77 100644 --- a/src/setup.c +++ b/src/setup.c @@ -200,6 +200,7 @@ parse_design_setup_xml (const gchar *filename) TGalleryDesignTheme *theme; int count, c; int i, j; + gboolean no_hidpi; xml = xml_parser_load (filename); if (xml == NULL) @@ -309,8 +310,12 @@ parse_design_setup_xml (const gchar *filename) image_size->quality_threshold = xml_file_get_node_attribute_long_with_default (xml, s, "quality", DEFAULT_QUALITY_THRESHOLD); g_free (s); + s = g_strdup_printf ("/design_setup/image_sizes/size[%d]/no_hidpi", i + 1); + no_hidpi = xml_file_get_node_present (xml, s); + g_free (s); + /* Generate HiDPI sizes */ - if (design->hidpi_sizes) + if (design->hidpi_sizes && !no_hidpi) for (j = 0; design->hidpi_sizes[j] != 0; j++ ) { hidpi_image_size = g_malloc0 (sizeof (TImageSize)); memcpy (hidpi_image_size, image_size, sizeof (TImageSize)); diff --git a/templates/fluid/fluid.xml b/templates/fluid/fluid.xml index b62c1d3..8d2bdbc 100644 --- a/templates/fluid/fluid.xml +++ b/templates/fluid/fluid.xml @@ -36,6 +36,8 @@ <quality value="93" /> <fallback size="hires" /> <threshold no_resize="20" availability="20" quality="5" /> + <!-- don't generate HiDPI images for this size --> + <no_hidpi /> </size> </image_sizes> |
