mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-05 13:28:16 +00:00
t/gui: Show git hash in Window title (NFC)
This commit is contained in:
parent
b4dac8d6fc
commit
b3e9653994
1
doc/changes/state_trackers/mr.830.md
Normal file
1
doc/changes/state_trackers/mr.830.md
Normal file
|
@ -0,0 +1 @@
|
|||
gui: Show git description in `monado-gui` window title.
|
|
@ -9,6 +9,7 @@
|
|||
|
||||
#include "ogl/ogl_api.h"
|
||||
#include "gui_sdl2.h"
|
||||
#include "util/u_git_tag.h"
|
||||
|
||||
|
||||
/*
|
||||
|
@ -60,7 +61,9 @@ gui_sdl2_init(struct sdl2_program *p)
|
|||
}
|
||||
p->sdl_initialized = true;
|
||||
|
||||
const char *title = "Monado! ☺";
|
||||
char title[1024];
|
||||
snprintf(title, sizeof(title), "Monado! ☺ (%s)", u_git_tag);
|
||||
|
||||
int x = SDL_WINDOWPOS_UNDEFINED;
|
||||
int y = SDL_WINDOWPOS_UNDEFINED;
|
||||
int w = 1920;
|
||||
|
|
Loading…
Reference in a new issue