Attached is a patch for the bug that retains the original behaviour if no X offset is specified. I also sent this patch to the gozer author.

--
Scott Barker       [EMAIL PROTECTED]
Linux Consultant   http://www.mostlylinux.ca/scott
diff -urbBw gozer-0.7.nofont.1/src/main.c gozer-0.7.nofont.1-fixed/src/main.c
--- gozer-0.7.nofont.1/src/main.c       2002-04-30 16:57:49.000000000 -0600
+++ gozer-0.7.nofont.1-fixed/src/main.c 2007-12-12 13:20:53.000000000 -0700
@@ -156,7 +156,14 @@
                                opt.fn_r, opt.fn_g, opt.fn_b, opt.fn_a);
            break;
         case JUST_CENTER:
+           if (opt.x)
+           {
+           x = (opt.x - ( ww / 2 ));
+           }
+           else
+           {
            x = ((((opt.bg_resize && bgw) ? bgw : w) - ww) / 2);
+           }
            /* y = ((((opt.bg_resize && bgw) ? bgh : h) - hh) / 2); */
            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