[Xfce4-commits] <xfce4-screenshooter:master> Improve the size of the generated thumbnail.
Jérôme Guelfucci
noreply at xfce.org
Sun Oct 11 15:42:02 CEST 2009
Updating branch refs/heads/master
to f19d50ea4d2d47d7ff9cd1a51c8822df0f1abc64 (commit)
from 020db2b8066b3ab79c268b2ca68c25bceeca4031 (commit)
commit f19d50ea4d2d47d7ff9cd1a51c8822df0f1abc64
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date: Thu Oct 1 11:22:34 2009 +0200
Improve the size of the generated thumbnail.
lib/screenshooter-dialogs.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/lib/screenshooter-dialogs.c b/lib/screenshooter-dialogs.c
index c5938f8..288fd1c 100644
--- a/lib/screenshooter-dialogs.c
+++ b/lib/screenshooter-dialogs.c
@@ -20,7 +20,8 @@
#include "screenshooter-dialogs.h"
#define ICON_SIZE 16
-#define THUMB_SIZE 200
+#define THUMB_X_SIZE 200
+#define THUMB_Y_SIZE 125
/* Prototypes */
@@ -460,9 +461,9 @@ static GdkPixbuf
height = gdk_pixbuf_get_height (screenshot);
if (width > height)
- i = width / THUMB_SIZE;
+ i = width / THUMB_X_SIZE;
else
- i = height / THUMB_SIZE;
+ i = height / THUMB_Y_SIZE;
if (i == 0)
return gdk_pixbuf_copy (screenshot);
More information about the Xfce4-commits
mailing list