We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 852df7d commit f408c96Copy full SHA for f408c96
js/rpg_core/Bitmap.js
@@ -72,10 +72,14 @@ Bitmap.prototype._createCanvas = function(width, height){
72
Bitmap.prototype._createBaseTexture = function(source){
73
this.__baseTexture = new PIXI.BaseTexture(source);
74
this.__baseTexture.mipmap = false;
75
- this.__baseTexture.scaleMode = PIXI.SCALE_MODES.NEAREST;
76
this.__baseTexture.width = source.width;
77
this.__baseTexture.height = source.height;
78
- this.smooth = this._smooth;
+
+ if (this._smooth) {
79
+ this._baseTexture.scaleMode = PIXI.SCALE_MODES.LINEAR;
80
+ } else {
81
+ this._baseTexture.scaleMode = PIXI.SCALE_MODES.NEAREST;
82
+ }
83
};
84
85
Bitmap.prototype._clearImgInstance = function(){
0 commit comments