made Log static class

This commit is contained in:
2023-07-27 20:35:36 +02:00
parent e1e0180502
commit a93ee1cddf
3 changed files with 15 additions and 16 deletions

View File

@@ -24,7 +24,7 @@ class KernelLog implements Process {
statelessCtx.setRenderFunc(this.render);
Log.instance.onLog.handle(()->{
Log.onLog.handle(()->{
statelessCtx.requestRender();
});
}
@@ -33,7 +33,7 @@ class KernelLog implements Process {
ctx.clear();
ctx.setCursorPos(0,0);
var lines = Log.instance.getLines();
var lines = Log.getLines();
var height = ctx.getSize().y;
var start = MathI.max(lines.length - height,0);