Skip to content

Commit

Permalink
Fixed Window root
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Apr 22, 2024
1 parent b1b7a0d commit 68df98f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/game/ui/Window.hx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ class Window extends dn.Process {


public function new(modal:Bool, ?p:dn.Process) {
super(p==null ? App.ME : p);
var parentProc = p==null ? App.ME : p;
super(parentProc);

ALL.push(this);
createRootInLayers(Game.ME.root, Const.DP_UI);
createRootInLayers(parentProc.root, Const.DP_UI);
root.filter = new h2d.filter.Nothing(); // force pixel perfect rendering

content = new h2d.Flow(root);
Expand Down

0 comments on commit 68df98f

Please sign in to comment.