Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Commit

Permalink
Fix crash in panel when drawing rounded rect background for alt-tab w…
Browse files Browse the repository at this point in the history
…indow
  • Loading branch information
klange committed May 25, 2021
1 parent dc45214 commit cd98680
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/graphics.c
Original file line number Diff line number Diff line change
Expand Up @@ -947,10 +947,10 @@ void draw_rounded_rectangle(gfx_context_t * ctx, int32_t x, int32_t y, uint16_t
}

GFX(ctx, _x, _y) = alpha_blend_rgba(GFX(ctx, _x, _y), c);
GFX(ctx, _x, _z) = alpha_blend_rgba(GFX(ctx, _x, _z), c);
if (_z >= 0) GFX(ctx, _x, _z) = alpha_blend_rgba(GFX(ctx, _x, _z), c);
_x = x + radius - i - 1;
GFX(ctx, _x, _y) = alpha_blend_rgba(GFX(ctx, _x, _y), c);
GFX(ctx, _x, _z) = alpha_blend_rgba(GFX(ctx, _x, _z), c);
if (_z >= 0) GFX(ctx, _x, _z) = alpha_blend_rgba(GFX(ctx, _x, _z), c);
}
}
}
Expand Down Expand Up @@ -990,10 +990,10 @@ void draw_rounded_rectangle_pattern(gfx_context_t * ctx, int32_t x, int32_t y, u

double alpha = (j_max - (double)j);
GFX(ctx, _x, _y) = alpha_blend_rgba(GFX(ctx, _x, _y), pattern(_x,_y,alpha,extra));
GFX(ctx, _x, _z) = alpha_blend_rgba(GFX(ctx, _x, _z), pattern(_x,_z,alpha,extra));
if (_z >= 0) GFX(ctx, _x, _z) = alpha_blend_rgba(GFX(ctx, _x, _z), pattern(_x,_z,alpha,extra));
_x = x + radius - i - 1;
GFX(ctx, _x, _y) = alpha_blend_rgba(GFX(ctx, _x, _y), pattern(_x,_y,alpha,extra));
GFX(ctx, _x, _z) = alpha_blend_rgba(GFX(ctx, _x, _z), pattern(_x,_z,alpha,extra));
if (_z >= 0) GFX(ctx, _x, _z) = alpha_blend_rgba(GFX(ctx, _x, _z), pattern(_x,_z,alpha,extra));
}
}
}
Expand Down

0 comments on commit cd98680

Please sign in to comment.