FIX: use ctx.strokeStyle/fillStyle so draw_ellipse can be used to render the circle brushes in the brush tool options

main
Isaiah Odhner 2014-05-20 01:31:32 -04:00
parent 4c6f679ab9
commit 9a388e5dd0
1 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,8 @@
function draw_ellipse(ctx, x, y, w, h){
var stroke_color = ctx.strokeStyle;
var fill_color = ctx.fillStyle;
var r1 = Math.round;
var r2 = Math.round;
@ -43,6 +46,9 @@ function draw_ellipse(ctx, x, y, w, h){
}
}
function draw_rounded_rectangle(ctx, x, y, width, height, radius){
var stroke_color = ctx.strokeStyle;
var fill_color = ctx.fillStyle;
if(aliasing){
var iw = width - radius*2;
var ih = height - radius*2;