Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions morphic.js
Original file line number Diff line number Diff line change
Expand Up @@ -1650,15 +1650,21 @@ function enableRetinaSupport() {
return uber.height.get.call(this) / getPixelRatio(this);
},
set: function(height) {
var pixelRatio = getPixelRatio(this),
context;
uber.height.set.call(this, height * pixelRatio);
context = this.getContext('2d');
/*
context.restore();
context.save();
*/
context.scale(pixelRatio, pixelRatio);
try { // workaround one of FF's dreaded NS_ERROR_FAILURE bugs
// this should be taken out as soon as FF gets fixed again
var pixelRatio = getPixelRatio(this),
context;
uber.height.set.call(this, height * pixelRatio);
context = this.getContext('2d');
/*
context.restore();
context.save();
*/
context.scale(pixelRatio, pixelRatio);
} catch (err) {
console.log('Retina Display Support Problem', err);
uber.height.set.call(this, height);
}
}
});

Expand Down