Package: gozer
Version: 0.7.nofont.1-3
Severity: normal
Tags: patch

When using right justification (-j right) and a background image (-G
imagefile), the X offset (-x xoffset) is ignored, and the text is right
justified on the entire background image, instead of being right
justified against the X offset.


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-vserver-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=en_CA.iso8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages gozer depends on:
ii  giblib1                1.2.4-5           wrapper library for imlib2, and ot
ii  libc6                  2.7-6             GNU C Library: Shared libraries
ii  libfreetype6           2.3.5-1+b1        FreeType 2 font engine, shared lib
ii  libimlib2              1.4.0-1           powerful image loading and renderi
ii  libx11-6               2:1.0.3-7         X11 client-side library
ii  libxext6               1:1.0.3-2         X11 miscellaneous extension librar
ii  zlib1g                 1:1.2.3.3.dfsg-11 compression library - runtime

gozer recommends no packages.

-- no debconf information
Only in gozer-0.7.nofont.1: gozer.spec
diff -urbBw gozer-0.7.nofont.1/src/main.c gozer-0.7.nofont.1.patched/src/main.c
--- gozer-0.7.nofont.1/src/main.c       2008-02-04 13:57:50.000000000 -0700
+++ gozer-0.7.nofont.1.patched/src/main.c       2008-02-04 13:01:46.000000000 
-0700
@@ -169,7 +169,14 @@
                                opt.fn_r, opt.fn_g, opt.fn_b, opt.fn_a);
            break;
         case JUST_RIGHT:
+           if (opt.x) 
+           {
+              x = opt.x - ww;
+           }
+           else
+           {
            x = (((opt.bg_resize && bgw) ? bgw : w) - ww);
+           }
            gib_imlib_text_draw(image, fn, style, x, y, p, IMLIB_TEXT_TO_RIGHT,
                                opt.fn_r, opt.fn_g, opt.fn_b, opt.fn_a);
 

Reply via email to