mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 761326 - test_2d.path.arc.scale.1 assumes unrealistic 0.098 tolerance or luck - r=jrmuizel
This commit is contained in:
parent
dcfba92e05
commit
cd3c551e46
@ -11138,7 +11138,10 @@ ctx.fillRect(0, 0, 100, 50);
|
||||
ctx.scale(2, 0.5);
|
||||
ctx.fillStyle = '#0f0';
|
||||
ctx.beginPath();
|
||||
ctx.arc(25, 50, 56, 0, 2*Math.PI, false);
|
||||
var hypothenuse = Math.sqrt(50 * 50 + 25 * 25);
|
||||
var tolerance = 0.5;
|
||||
var radius = hypothenuse + tolerance;
|
||||
ctx.arc(25, 50, radius, 0, 2*Math.PI, false);
|
||||
ctx.fill();
|
||||
ctx.fillStyle = '#f00';
|
||||
ctx.beginPath();
|
||||
|
Loading…
Reference in New Issue
Block a user