remove asserts pending sanity check.
This commit is contained in:
parent
4260bfcb05
commit
6bec1de545
1 changed files with 1 additions and 5 deletions
|
@ -238,16 +238,12 @@ void gradient_solid(Appearance *l, int x, int y, int w, int h)
|
||||||
PlanarSurface *sp = &l->surface.data.planar;
|
PlanarSurface *sp = &l->surface.data.planar;
|
||||||
int left = x, top = y, right = w - 1, bottom = h - 1;
|
int left = x, top = y, right = w - 1, bottom = h - 1;
|
||||||
|
|
||||||
assert(x+w < l->area.width);
|
|
||||||
assert(y+h < l->area.height);
|
|
||||||
|
|
||||||
if (sp->primary->gc == None)
|
if (sp->primary->gc == None)
|
||||||
color_allocate_gc(sp->primary);
|
color_allocate_gc(sp->primary);
|
||||||
pix = (sp->primary->r << default_red_shift)
|
pix = (sp->primary->r << default_red_shift)
|
||||||
+ (sp->primary->g << default_green_shift)
|
+ (sp->primary->g << default_green_shift)
|
||||||
+ (sp->primary->b << default_blue_shift);
|
+ (sp->primary->b << default_blue_shift);
|
||||||
printf("x = %d : y = %d : w = %d : h = %d (%d:%d\n", x,y,w,h,
|
|
||||||
l->area.width, l->area.height);
|
|
||||||
for (a = 0; a < l->area.width; a++)
|
for (a = 0; a < l->area.width; a++)
|
||||||
for (b = 0; b < l->area.height; b++)
|
for (b = 0; b < l->area.height; b++)
|
||||||
sp->pixel_data[a + b*l->area.width] = pix;
|
sp->pixel_data[a + b*l->area.width] = pix;
|
||||||
|
|
Loading…
Reference in a new issue