formatting tweaks

dev
Jens Mönig 2015-10-02 13:04:38 +02:00
rodzic 61a68a37ae
commit ee19e66ea9
2 zmienionych plików z 11 dodań i 7 usunięć

Wyświetl plik

@ -2585,3 +2585,4 @@ ______
* GUI, Blocks, BYOB: New “Export Project Summary” Feature, also: exporting script pics now includes attached comments
* Blocks, Objects, Threads: Key hat block and key sensor support for “any” key
* German translation update
* Suppress antialiasing when scaling things in the paint editor. Thanks, Kartik!

Wyświetl plik

@ -70,7 +70,7 @@
// Global stuff ////////////////////////////////////////////////////////
modules.paint = '2015-June-25';
modules.paint = '2015-October-02';
// Declarations
@ -625,11 +625,14 @@ PaintCanvasMorph.prototype.undo = function () {
};
PaintCanvasMorph.prototype.disableSmoothing = function (ctx) {
ctx['imageSmoothingEnabled'] = false; /* standard */
ctx['mozImageSmoothingEnabled'] = false; /* Firefox */
ctx['oImageSmoothingEnabled'] = false; /* Opera */
ctx['webkitImageSmoothingEnabled'] = false; /* Safari */
ctx['msImageSmoothingEnabled'] = false; /* IE */
ctx.imageSmoothingEnabled = false; /* standard */
// we oughta keep checking whether the following ones
// are still needed
ctx.mozImageSmoothingEnabled = false; /* Firefox */
ctx.oImageSmoothingEnabled = false; /* Opera */
ctx.webkitImageSmoothingEnabled = false; /* Safari */
ctx.msImageSmoothingEnabled = false; /* IE */
};
PaintCanvasMorph.prototype.merge = function (a, b) {