set window title to file path

This commit is contained in:
Crispy 2024-11-30 17:03:02 +01:00
parent d11d85fe8a
commit b986ce77a7

View file

@ -19,6 +19,7 @@ main :: proc() {
if strings.has_prefix(path, "file://") {
path, _ = strings.substring_from(path, 7)
}
rl.SetWindowTitle(strings.clone_to_cstring(path));
tex = new_clone(rl.LoadTexture(strings.clone_to_cstring(path)))
if tex.id <= 0 { return }
reset_zoom()