Fix resolution check
This commit is contained in:
@@ -73,7 +73,7 @@ class Layers {
|
||||
|
||||
public static function resizeLayers(g: kha.graphics4.Graphics) {
|
||||
var C = Config.raw;
|
||||
if (App.resHandle.position >= 4) { // Save memory for >=16k
|
||||
if (App.resHandle.position >= Std.int(Res16384)) { // Save memory for >=16k
|
||||
C.undo_steps = 1;
|
||||
if (UITrait.inst.undoHandle != null) UITrait.inst.undoHandle.value = C.undo_steps;
|
||||
while (History.undoLayers.length > C.undo_steps) { var l = History.undoLayers.pop(); l.unload(); }
|
||||
|
||||
Reference in New Issue
Block a user