[Pkg-wmaker-commits] [wmbubble] 97/207: Allow the datefont_xpm to usefully be able to become wider than 5 eventually

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 04:18:11 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmbubble.

commit e74f1ac5e3f737e65ba6cdc10dc4a2bd4a9a8df3
Author: Robert Jacobs <rnjacobs at mit.edu>
Date:   Mon Aug 22 01:19:59 2011 -0700

    Allow the datefont_xpm to usefully be able to become wider than 5 eventually
---
 bubblemon.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bubblemon.c b/bubblemon.c
index 3e4ec13..ac8b265 100644
--- a/bubblemon.c
+++ b/bubblemon.c
@@ -587,7 +587,7 @@ int get_screen_selection(void) {
 }
 
 void make_new_bubblemon_dockapp(void) {
-	int cc, xx, yy;
+	int cc, xx, yy, maxwidth;
 	/* We begin with zero bubbles */
 	bm.n_bubbles = 0;
 
@@ -596,7 +596,7 @@ void make_new_bubblemon_dockapp(void) {
 
 	build_graphs();
 
-	sscanf(datefont_xpm[0],"%u %u %u %u",&xx,&yy,&datefont_offset,&cc);
+	sscanf(datefont_xpm[0],"%u %u %u %u",&maxwidth,&yy,&datefont_offset,&cc);
 	if (cc != 1) abort(); /* fuck that */
 
 	datefont_offset++; /* include header line */
@@ -610,7 +610,7 @@ void make_new_bubblemon_dockapp(void) {
 
 	/* calculate proportional spacing widths of font used for writing date */
 	for (cc = 33; cc < 128; cc++)
-		for (xx = 4; xx >= 0; xx--)
+		for (xx = maxwidth-1; xx >= 0; xx--)
 			for (yy = 0; yy < 8; yy++)
 				if (datefont_xpm[(cc-32)*8+yy+datefont_offset][xx] != datefont_transparent) {
 					datefont_widths[cc] = xx+2;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbubble.git



More information about the Pkg-wmaker-commits mailing list