Bernat Romagosa 2018-02-07 09:17:51 +01:00
commit 2e295dfb74
3 zmienionych plików z 22 dodań i 32 usunięć

4
gui.js
Wyświetl plik

@ -75,7 +75,7 @@ isRetinaSupported, SliderMorph, Animation, BoxMorph, MediaRecorder*/
// Global stuff //////////////////////////////////////////////////////// // Global stuff ////////////////////////////////////////////////////////
modules.gui = '2018-February-05'; modules.gui = '2018-February-06';
// Declarations // Declarations
@ -3443,7 +3443,7 @@ IDE_Morph.prototype.aboutSnap = function () {
module, btn1, btn2, btn3, btn4, licenseBtn, translatorsBtn, module, btn1, btn2, btn3, btn4, licenseBtn, translatorsBtn,
world = this.world(); world = this.world();
aboutTxt = 'Snap! 4.1.1\nBuild Your Own Blocks\n\n' aboutTxt = 'Snap! 4.1.2 - dev -\nBuild Your Own Blocks\n\n'
+ 'Copyright \u24B8 2018 Jens M\u00F6nig and ' + 'Copyright \u24B8 2018 Jens M\u00F6nig and '
+ 'Brian Harvey\n' + 'Brian Harvey\n'
+ 'jens@moenig.org, bh@cs.berkeley.edu\n\n' + 'jens@moenig.org, bh@cs.berkeley.edu\n\n'

Wyświetl plik

@ -3810,8 +3810,6 @@ Fixes:
=== v4.1.0.5 maintenance release === === v4.1.0.5 maintenance release ===
*** in development ***
171201 171201
------ ------
* GUI: started development on v 4.1.1 * GUI: started development on v 4.1.1
@ -3891,7 +3889,6 @@ Fixes:
* Russian translation update, thanks, temap! * Russian translation update, thanks, temap!
* release * release
=== v4.1.1 minor release === === v4.1.1 minor release ===
v4.1.1 New Features: v4.1.1 New Features:
@ -3922,7 +3919,6 @@ Notable Fixes:
* when deleting a temporary clone, detach all its parts and delete the temporary ones * when deleting a temporary clone, detach all its parts and delete the temporary ones
* new release protocol to avoid browser caching related version conflicts * new release protocol to avoid browser caching related version conflicts
Translation Updates: Translation Updates:
* German * German
* Greek * Greek
@ -3930,3 +3926,21 @@ Translation Updates:
* Chinese * Chinese
* Spanish * Spanish
* Russian * Russian
*** in development ***
180206
------
* GUI: start developing v4.1.2
* Morphic: roll back temporary rectangle filling workaround for a bug in Chrome v57
=== v4.1.2 features ===
v4.1.2 New Features:
Notable Changes:
Notable Fixes:
Translation Updates:

Wyświetl plik

@ -1163,7 +1163,7 @@
/*global window, HTMLCanvasElement, FileReader, Audio, FileList*/ /*global window, HTMLCanvasElement, FileReader, Audio, FileList*/
var morphicVersion = '2018-January-25'; var morphicVersion = '2018-February-06';
var modules = {}; // keep track of additional loaded modules var modules = {}; // keep track of additional loaded modules
var useBlurredShadows = getBlurredShadowSupport(); // check for Chrome-bug var useBlurredShadows = getBlurredShadowSupport(); // check for Chrome-bug
@ -3251,31 +3251,7 @@ Morph.prototype.drawNew = function () {
this.image = newCanvas(this.extent()); this.image = newCanvas(this.extent());
var context = this.image.getContext('2d'); var context = this.image.getContext('2d');
context.fillStyle = this.color.toString(); context.fillStyle = this.color.toString();
context.fillRect(0, 0, this.width(), this.height());
/*
Chrome issue:
when filling a rectangular area, versions of Chrome beginning with
57.0.2987.133 start introducing vertical transparent stripes
to the right of the rectangle.
The following code replaces the original fillRect() call with
an explicit almost-rectangular path that miraculously makes
sure the whole rectangle gets filled correctly.
Important: This needs to be monitored in the future so we can
revert to sane code once this Chrome issue has been resolved again.
*/
// context.fillRect(0, 0, this.width(), this.height()); // taken out
context.beginPath();
context.moveTo(0, 0);
context.lineTo(this.image.width, 0);
context.lineTo(this.image.width, this.image.height);
context.lineTo(0, this.image.height + 0.0001); // yeah, I luv Chrome!
context.closePath();
context.fill();
if (this.cachedTexture) { if (this.cachedTexture) {
this.drawCachedTexture(); this.drawCachedTexture();
} else if (this.texture) { } else if (this.texture) {