[AD] [GUI] cosmetic bug

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Just committed the attached patch, reported on allegro.cc.

-- 
Elias Pschernig
Index: src/guiproc.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/guiproc.c,v
retrieving revision 1.29
diff -u -p -r1.29 guiproc.c
--- src/guiproc.c	11 Jun 2005 17:14:36 -0000	1.29
+++ src/guiproc.c	29 Jun 2005 20:25:50 -0000
@@ -1093,7 +1093,7 @@ void _draw_listbox(DIALOG *d)
 	    if ((sel[d->d2+i]) && (d->d2+i == d->d1)) {
 	       fg = d->bg;
 	       bg = fg_color;
-		}
+	    }
 	    else if (sel[d->d2+i]) {
 	       fg = d->bg;
 	       bg = gui_mg_color;
@@ -1126,7 +1126,8 @@ void _draw_listbox(DIALOG *d)
 	 if (x <= d->x+w) 
 	    rectfill(gui_bmp, x, y, d->x+w, y+text_height(font)-1, bg);
 	 if (d->d2+i == d->d1)
-	    dotted_rect(d->x+1, y, d->x+d->w-(bar ? 12 : 0), y+text_height(font)-1, d->fg, d->bg);
+	    dotted_rect(d->x+2, y, d->x+d->w-(bar ? 15 : 3),
+	       y+text_height(font)-1,d->fg, d->bg);
       }
       else {
 	 rectfill(gui_bmp, d->x+2,  d->y+2+i*text_height(font), 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/