diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index 16a7536ce..0ee51e637 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -810,12 +810,13 @@ var LoginDialog = GObject.registerClass({ return; this._logoBin.destroy_all_children(); - if (this._logoFile && this._logoBin.resource_scale > 0) { + const [valid, resourceScale] = this._logoBin.get_resource_scale(); + if (this._logoFile && valid) { let scaleFactor = St.ThemeContext.get_for_stage(global.stage).scale_factor; this._logoBin.add_child(this._textureCache.load_file_async(this._logoFile, -1, -1, scaleFactor, - this._logoBin.resource_scale)); + resourceScale)); } }