Package: xloadimage
Version: 4.1-16
Severity: normal
Tags: patch

Shrink does also zoom upwards for images which are smaller than the
screen.
The following patch fixes this, images smaller as the screen are left
at 100% zoom:

--- xloadimage-4.1/xloadimage.c 2006-08-04 00:45:48.000000000 +0200
+++ xloadimage-4.1.new/xloadimage.c     2006-08-04 00:16:56.000000000 +0200
@@ -408,6 +408,9 @@
         / (float)newimage->width * 100.0 :
         ((float)DisplayHeight(disp, scrn) * 0.9)
         / (float)newimage->height * 100.0);
+      if ((opt->info.zoom.x > 100) || (opt->info.zoom.y > 100))
+        opt->info.zoom.x=opt->info.zoom.y=100;
+      
       addOption(optset, opt);
     }
 
Thanks,
  David

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.13
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages xloadimage depends on:
ii  libc6                       2.3.6-16     GNU C Library: Shared libraries
ii  libjpeg62                   6b-13        The Independent JPEG Group's JPEG 
ii  libpng12-0                  1.2.8rel-5.2 PNG library - runtime
ii  libtiff4                    3.8.2-6      Tag Image File Format (TIFF) libra
ii  libx11-6                    2:1.0.0-7    X11 client-side library
ii  zlib1g                      1:1.2.3-13   compression library - runtime

xloadimage recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to