🪲 Fix Doom effect

This commit is contained in:
Simon Schneegans
2023-09-09 05:52:15 +02:00
parent 14cd1db7e9
commit 15560abad7
+1 -1
View File
@@ -102,7 +102,7 @@ export default class Effect {
// bounds of the actor. This only works for GNOME 3.38+.
// For this effect, we scale the actor vertically so that it covers the entire screen.
// This ensures that the melted window will not be cut off.
getActorScale(settings, forOpening, actor) {
static getActorScale(settings, forOpening, actor) {
let actorScale = 2.0 * Math.max(1.0, global.stage.height / actor.height);
return {x: 1.0, y: actorScale};
}