diff options
| author | Harry Jeffery <harry@exec64.co.uk> | 2015-11-11 10:16:04 +0000 |
|---|---|---|
| committer | Harry Jeffery <harry@exec64.co.uk> | 2015-11-11 10:16:04 +0000 |
| commit | 5f56c7e9d550cd5adc3ef22e9848551f724f89d3 (patch) | |
| tree | 1c4ae610630fbe7a1083176a5f6273824ef848b5 | |
| parent | 87670b6a6de9afff403e5d71f0b703505b6cfab0 (diff) | |
| download | imv-5f56c7e9d550cd5adc3ef22e9848551f724f89d3.tar.gz | |
Show image dimensions in titlebar
| -rw-r--r-- | main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -233,8 +233,9 @@ int main(int argc, char** argv) if(imv_image_load(&img, current_path) != 0) { imv_navigator_remove_current_path(&nav); } else { - char title[128]; - snprintf(&title[0], sizeof(title), "imv - %s", current_path); + char title[256]; + snprintf(&title[0], sizeof(title), "imv - [%ix%i] %s", + img.width, img.height, current_path); SDL_SetWindowTitle(window, (const char*)&title); imv_viewport_reset(&view); } |
