diff --git a/corelog.gd b/corelog.gd index 1c7f2fc..07f1e30 100644 --- a/corelog.gd +++ b/corelog.gd @@ -24,6 +24,12 @@ func _ready(): # Make RichTextLabel ignore all mouse events (to disable scrolling) mouse_filter = Control.MOUSE_FILTER_IGNORE +func _process(_delta): + var windowsize = DisplayServer.window_get_size() + $".".size = windowsize + get_parent().size = windowsize + get_parent().get_parent().size = windowsize + func logevent(_type:String,_script:String,_message:String,logcomp:String) -> void: # Appends log to RichTextLabel if log_first: diff --git a/wmgr.gd b/wmgr.gd index 968c526..afe845b 100644 --- a/wmgr.gd +++ b/wmgr.gd @@ -65,8 +65,8 @@ func get_mode() -> String: func _ready() -> void: Logger.info("wmgr","Configuring window") - DisplayServer.window_set_size(Vector2i(960,540)) + DisplayServer.window_set_size(Vector2i(window_size_x,window_size_y)) DisplayServer.window_set_min_size(Vector2i(960,540)) DisplayServer.window_set_title(window_title) - DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED) + DisplayServer.window_set_mode(window_mode) core.setready()