[gnome-software/gnome-3-14] Don't show small screenshots on HiDPI hardware
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-14] Don't show small screenshots on HiDPI hardware
- Date: Wed, 27 May 2015 14:27:08 +0000 (UTC)
commit 1322fa1022fae190997d715e647c281587b73de9
Author: Richard Hughes <richard hughsie com>
Date: Thu Feb 19 13:15:32 2015 +0000
Don't show small screenshots on HiDPI hardware
If as_screenshot_get_image() doesn't find the exact resolution requested,
it returns the one closest to the required size.
src/gs-screenshot-image.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-screenshot-image.c b/src/gs-screenshot-image.c
index 383656d..933afaa 100644
--- a/src/gs-screenshot-image.c
+++ b/src/gs-screenshot-image.c
@@ -360,7 +360,7 @@ gs_screenshot_image_load_async (GsScreenshotImage *ssimg,
priv->width * 2,
priv->height * 2);
if (im != NULL)
- priv->scale *= 2;
+ priv->scale = as_image_get_width (im) / priv->width;
}
/* fallback to LoDPI if it exists */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]