From 9a388e5dd0d91bcfd7657c8647632d432503f532 Mon Sep 17 00:00:00 2001 From: Isaiah Odhner Date: Tue, 20 May 2014 01:31:32 -0400 Subject: [PATCH] FIX: use ctx.strokeStyle/fillStyle so draw_ellipse can be used to render the circle brushes in the brush tool options --- image-manipulation.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/image-manipulation.js b/image-manipulation.js index f70a977..0d89979 100644 --- a/image-manipulation.js +++ b/image-manipulation.js @@ -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;