diff options
| author | Harry Jeffery <harry@exec64.co.uk> | 2015-11-06 16:52:59 +0000 |
|---|---|---|
| committer | Harry Jeffery <harry@exec64.co.uk> | 2015-11-06 16:52:59 +0000 |
| commit | 84fbc128639c47cb9aa0382c70c58e85b9e66dde (patch) | |
| tree | 547fcf940aa929a4c14fa463327d875f8f65333f | |
| parent | 1df31addabe8a003709e6c892d2777e4f85766a3 (diff) | |
| download | imv-84fbc128639c47cb9aa0382c70c58e85b9e66dde.tar.gz | |
Put filename in window title
| -rw-r--r-- | main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -214,6 +214,9 @@ int main(int argc, char** argv) remove_current_path(); } else { g_path.changed = 0; + char title[128]; + snprintf(&title[0], sizeof(title), "imv - %s", g_path.cur->path); + SDL_SetWindowTitle(g_window, (const char*)&title); reset_view(); } } |
