Skip to content

Commit

Permalink
Merge branch 'hotfix/1.0.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
jondavidjohn committed Jul 27, 2014
2 parents 220b8ba + 0033411 commit 5c6f3f6
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 18 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
= 1.0.8
= 1.0.9
* True fix for issue with lineWidth handling in stroke (#14)

= 1.0.8 (broken)
* Fix issue with lineWidth handling in stroke (#14)

= 1.0.7
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hidpi-canvas",
"version": "1.0.8",
"version": "1.0.9",
"homepage": "https://github.com/jondavidjohn/hidpi-canvas-polyfill",
"authors": [
"Jonathan Johnson <jon@crowdfavorite.com>"
Expand Down
15 changes: 8 additions & 7 deletions dist/hidpi-canvas.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* HiDPI Canvas Polyfill (1.0.8)
* HiDPI Canvas Polyfill (1.0.9)
*
* Author: Jonathan D. Johnson (http://jondavidjohn.com)
* Homepage: https://github.com/jondavidjohn/hidpi-canvas-polyfill
Expand Down Expand Up @@ -70,12 +70,13 @@
});

// Stroke lineWidth adjustment
prototype.stroke = (function(_super) {
var args = Array.prototype.slice.call(arguments);
this.lineWidth *= pixelRatio;
_super.apply(this, args);
this.lineWidth /= pixelRatio;
})(prototype.stroke);
prototype.stroke = (function(_super) {
return function() {
this.lineWidth *= pixelRatio;
_super.apply(this, arguments);
this.lineWidth /= pixelRatio;
};
})(prototype.stroke);

// Text
//
Expand Down
4 changes: 2 additions & 2 deletions dist/hidpi-canvas.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hidpi-canvas",
"description": "A JavaScript drop-in module to polyfill consistent and automatic HiDPI Canvas support.",
"version": "1.0.8",
"version": "1.0.9",
"license": "Apache 2.0",
"homepage": "https://github.com/jondavidjohn/hidpi-canvas-polyfill",
"bugs": "https://github.com/jondavidjohn/hidpi-canvas-polyfill/issues",
Expand Down
13 changes: 7 additions & 6 deletions src/CanvasRenderingContext2D.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,13 @@
});

// Stroke lineWidth adjustment
prototype.stroke = (function(_super) {
var args = Array.prototype.slice.call(arguments);
this.lineWidth *= pixelRatio;
_super.apply(this, args);
this.lineWidth /= pixelRatio;
})(prototype.stroke);
prototype.stroke = (function(_super) {
return function() {
this.lineWidth *= pixelRatio;
_super.apply(this, arguments);
this.lineWidth /= pixelRatio;
};
})(prototype.stroke);

// Text
//
Expand Down

0 comments on commit 5c6f3f6

Please sign in to comment.