diff options
author | Jez Ng <me@jezng.com> | 2013-07-10 02:40:56 -0700 |
---|---|---|
committer | Jez Ng <me@jezng.com> | 2013-07-10 15:27:56 -0700 |
commit | 6be4681a73074a3d38ce22b7665d40c7f7122fe7 (patch) | |
tree | be87368451183e19ddd515acb315dc57f7fffcdf /src/library_sdl.js | |
parent | 2186d70b824cab3033576789ceb67d81561eb379 (diff) |
Add (failing) test for gfx primitives.
Diffstat (limited to 'src/library_sdl.js')
-rw-r--r-- | src/library_sdl.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/library_sdl.js b/src/library_sdl.js index 32e801bb..439a974a 100644 --- a/src/library_sdl.js +++ b/src/library_sdl.js @@ -1764,9 +1764,9 @@ var LibrarySDL = { surfData.ctx.save(); surfData.ctx.beginPath(); - surfData.ctx.scale(rx, ry); surfData.ctx.translate(x, y); - surfData.ctx.arc(1, 1, 1, 0, 2 * Math.PI); + surfData.ctx.scale(rx, ry); + surfData.ctx.arc(0, 0, 1, 0, 2 * Math.PI); surfData.ctx.restore(); surfData.ctx.save(); @@ -1781,7 +1781,7 @@ var LibrarySDL = { }, ellipseRGBA__deps: ['_drawEllipse'], - ellipseRGBA: function(surf, x, y, rx, ry, color) { + ellipseRGBA: function(surf, x, y, rx, ry, r, g, b, a) { return __drawEllipse(surf, x, y, rx, ry, 'stroke', SDL.translateRGBAToCSSRGBA(r, g, b, a)); }, @@ -1791,7 +1791,7 @@ var LibrarySDL = { }, filledEllipseRGBA__deps: ['_drawEllipse'], - filledEllipseRGBA: function(surf, x, y, rx, ry, color) { + filledEllipseRGBA: function(surf, x, y, rx, ry, r, g, b, a) { return __drawEllipse(surf, x, y, rx, ry, 'fill', SDL.translateRGBAToCSSRGBA(r, g, b, a)); }, |