Fix resolution check

This commit is contained in:
luboslenco
2020-01-22 16:25:40 +01:00
parent ccb22d373f
commit d60abb6ea5
+1 -1
View File
@@ -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(); }