[gnome-software] Don't show small screenshots on HiDPI hardware
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Don't show small screenshots on HiDPI hardware
- Date: Thu, 19 Feb 2015 13:16:37 +0000 (UTC)
commit 432be8039e725fb075ab6b1c73032b223bc4daa3
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 3c1004d..e2018f9 100644
--- a/src/gs-screenshot-image.c
+++ b/src/gs-screenshot-image.c
@@ -375,7 +375,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]