Mercurial > audlegacy
comparison src/audacious/ui_skinned_number.c @ 3029:739516e45635
prevent from displaying mess
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Tue, 10 Jul 2007 20:16:06 +0200 |
parents | 883713b145f8 |
children | 229db6d72934 |
comparison
equal
deleted
inserted
replaced
3026:e9e925c3adb5 | 3029:739516e45635 |
---|---|
189 GdkPixmap *obj = NULL; | 189 GdkPixmap *obj = NULL; |
190 GdkGC *gc; | 190 GdkGC *gc; |
191 obj = gdk_pixmap_new(NULL, number->width, number->height, gdk_rgb_get_visual()->depth); | 191 obj = gdk_pixmap_new(NULL, number->width, number->height, gdk_rgb_get_visual()->depth); |
192 gc = gdk_gc_new(obj); | 192 gc = gdk_gc_new(obj); |
193 | 193 |
194 if (number->num > 11) | 194 if (number->num > 11 || number->num < 0) |
195 number->num = 10; | 195 number->num = 10; |
196 | 196 |
197 skin_draw_pixmap(bmp_active_skin, obj, gc, | 197 skin_draw_pixmap(bmp_active_skin, obj, gc, |
198 number->skin_index, number->num * 9, 0, | 198 number->skin_index, number->num * 9, 0, |
199 0, 0, number->width, number->height); | 199 0, 0, number->width, number->height); |