// Scroll to the Scene_MenuBase section to line 948
_.Scene_MenuBase_createBackground = Scene_MenuBase.prototype.createBackground;
Scene_MenuBase.prototype.createBackground = function() {
if(_.backgrounds[this._menuBackgroundConstructorName]) {
_.Scene_MenuBase_createBackground.call(this); // add this particular line
this._backgroundSprite = new TilingSprite();
this._backgroundSprite.anchor.x = 0.5;
this._backgroundSprite.anchor.y = 0.5;
this._backgroundSprite.origin.x = -(Graphics.boxWidth / 2);
this._backgroundSprite.origin.y = -(Graphics.boxHeight / 2);
this._backgroundSprite.move(Graphics.boxWidth/2, Graphics.boxHeight/2, Graphics.boxWidth, Graphics.boxHeight);
const bit = _.loadImage(_.backgrounds[this._menuBackgroundConstructorName]);
let newWidth = bit.width;
let newHeight = bit.height;
if(_.scale) {
newWidth = Graphics.boxWidth;
newHeight = Graphics.boxHeight;
}
this._backgroundSprite.bitmap = new Bitmap(newWidth, newHeight);
this._backgroundSprite.bitmap.blt(bit, 0, 0, bit.width, bit.height, 0, 0, newWidth, newHeight);
this.addChild(this._backgroundSprite);
this.createBackgroundMotion();
this.createBackgroundScale();
if(Utils.RPGMAKER_VERSION && Utils.RPGMAKER_VERSION >= '1.3.0') this.createBackgroundBlur();
} else {
_.Scene_MenuBase_createBackground.call(this);
}
};