Skip to content

Commit f54043d

Browse files
committed
GCC and cosmetic refactoring
1 parent 503de77 commit f54043d

File tree

5 files changed

+46
-32
lines changed

5 files changed

+46
-32
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
Black Engine: Changelog
22
=======================
33

4+
# v0.5.6
5+
### New features
6+
- Added `Graphics#cacheAsBitmapDynamic` property allowing to disable auto refresh of bitmap cache
7+
8+
### Bug Fixes
9+
- Fixed few Cache As Bitmap bugs causing Graphics and tiling sprite to render incorrectly
10+
- Fixed incorrect rendering of cached slice9grid texture
11+
- Fixed incorrect rendering of tiled texture from texture atlas
12+
13+
### Examples & Docs
14+
- Added "Cache As Bitmap Dynamic" example
15+
416
# v0.5.5
517
### New features
618
- Added support for Black Vector Graphics (beta)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "black",
3-
"version": "0.5.5",
3+
"version": "0.5.6",
44
"description": "",
55
"main": "dist/black-es6-module.js",
66
"directories": {},

src/display/DisplayObject.js

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ class DisplayObject extends GameObject {
4848
/** @protected @type {boolean} */
4949
this.mSnapToPixels = false;
5050

51-
/** @protected @type {DisplayObject|null} */
52-
this.mMask = null;
51+
// /** @protected @type {DisplayObject|null} */
52+
// this.mMask = null;
5353

54-
/** @protected @type {boolean} */
55-
this.mIsMask = false;
54+
// /** @protected @type {boolean} */
55+
// this.mIsMask = false;
5656
}
5757

5858
/**
@@ -380,29 +380,29 @@ class DisplayObject extends GameObject {
380380
this.mSnapToPixels = value;
381381
}
382382

383-
/**
384-
* Gets/sets a display object which will act like a mask for this display object.
385-
* Mask should be a part on the stage.
386-
* @returns {DisplayObject|null}
387-
*/
388-
get mask() {
389-
return this.mMask;
390-
}
391-
392-
/**
393-
* @ignore
394-
* @param {DisplayObject|null}
395-
*/
396-
set mask(value) {
397-
if (this.mMask === value)
398-
return;
399-
400-
if (this.mMask !== null)
401-
this.mMask.mIsMask = false;
402-
403-
if (value !== null)
404-
value.mIsMask = true;
405-
406-
this.mMask = value;
407-
}
383+
// /**
384+
// * Gets/sets a display object which will act like a mask for this display object.
385+
// * Mask should be a part on the stage.
386+
// * @returns {DisplayObject|null}
387+
// */
388+
// get mask() {
389+
// return this.mMask;
390+
// }
391+
392+
// /**
393+
// * @ignore
394+
// * @param {DisplayObject|null}
395+
// */
396+
// set mask(value) {
397+
// if (this.mMask === value)
398+
// return;
399+
400+
// if (this.mMask !== null)
401+
// this.mMask.mIsMask = false;
402+
403+
// if (value !== null)
404+
// value.mIsMask = true;
405+
406+
// this.mMask = value;
407+
// }
408408
}

src/parsers/BVGStyle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class BVGStyle {
134134
* @public
135135
* @param {BVGStyle} style Parent style
136136
*
137-
* @returns void
137+
* @returns {void}
138138
*/
139139
merge(style) {
140140
if (style.hasOwnProperty('F'))
@@ -176,7 +176,7 @@ class BVGStyle {
176176
*
177177
* @public
178178
*
179-
* @returns void
179+
* @returns {void}
180180
*/
181181
compute() {
182182
this.needsFill = this.F !== '-';

src/timers/Timer.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/**
22
* Timer component.
33
*
4+
* @cat timers
5+
*
46
* @fires Timer#complete
57
* @fires Timer#tick
68
*

0 commit comments

Comments
 (0)