diff options
author | Cosimo Cecchi <[email protected]> | 2013-08-04 02:41:26 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2018-04-04 21:53:21 -0400 |
commit | 47246e224272eec098c7f77ade5f2b1470b9dbcd (patch) | |
tree | f8368a63038ec61d6bc94e7cbeba9b8f251c297e /libcaja-private | |
parent | c0d60fcba6497e349b4b45f38e61a5c619eb6f14 (diff) | |
download | caja-47246e224272eec098c7f77ade5f2b1470b9dbcd.tar.bz2 caja-47246e224272eec098c7f77ade5f2b1470b9dbcd.tar.xz |
file: support HiDpi for thumbnails images
This was missing from the last commit.
origin commit:
https://gitlab.gnome.org/GNOME/nautilus/commit/b3b4bea5
Diffstat (limited to 'libcaja-private')
-rw-r--r-- | libcaja-private/caja-file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcaja-private/caja-file.c b/libcaja-private/caja-file.c index 667f74af..0652fd1c 100644 --- a/libcaja-private/caja-file.c +++ b/libcaja-private/caja-file.c @@ -4322,9 +4322,9 @@ caja_file_get_icon (CajaFile *file, } if (flags & CAJA_FILE_ICON_FLAGS_FORCE_THUMBNAIL_SIZE) { - modified_size = size; + modified_size = size * scale; } else { - modified_size = size * cached_thumbnail_size / CAJA_ICON_SIZE_STANDARD; + modified_size = size * scale * cached_thumbnail_size / CAJA_ICON_SIZE_STANDARD; } if (flags & CAJA_FILE_ICON_FLAGS_USE_THUMBNAILS && caja_file_should_show_thumbnail (file)) { @@ -4370,7 +4370,7 @@ caja_file_get_icon (CajaFile *file, image instead. We don't want to compare to exactly 100%, since the zoom level 150% gives thumbnails at 144, which is ok to scale up from 128. */ - if (modified_size > 128*1.25 && + if (modified_size > 128 * 1.25 * scale && !file->details->thumbnail_wants_original && caja_can_thumbnail_internally (file)) { /* Invalidate if we resize upward */ |