FIX: use ctx.strokeStyle/fillStyle so draw_ellipse can be used to render the circle brushes in the brush tool options
parent
4c6f679ab9
commit
9a388e5dd0
|
@ -1,5 +1,8 @@
|
||||||
|
|
||||||
function draw_ellipse(ctx, x, y, w, h){
|
function draw_ellipse(ctx, x, y, w, h){
|
||||||
|
var stroke_color = ctx.strokeStyle;
|
||||||
|
var fill_color = ctx.fillStyle;
|
||||||
|
|
||||||
var r1 = Math.round;
|
var r1 = Math.round;
|
||||||
var r2 = 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){
|
function draw_rounded_rectangle(ctx, x, y, width, height, radius){
|
||||||
|
var stroke_color = ctx.strokeStyle;
|
||||||
|
var fill_color = ctx.fillStyle;
|
||||||
|
|
||||||
if(aliasing){
|
if(aliasing){
|
||||||
var iw = width - radius*2;
|
var iw = width - radius*2;
|
||||||
var ih = height - radius*2;
|
var ih = height - radius*2;
|
||||||
|
|
Loading…
Reference in New Issue