set window title to file path
This commit is contained in:
parent
d11d85fe8a
commit
b986ce77a7
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue