Add option --window-title

Add an option to set a custom window title.

Signed-off-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
beango1
2019-06-23 13:02:34 -04:00
committed by Romain Vimont
parent 056e47e752
commit 8e65c10720
5 changed files with 20 additions and 4 deletions

View File

@@ -134,7 +134,7 @@ create_texture(SDL_Renderer *renderer, struct size frame_size) {
}
bool
screen_init_rendering(struct screen *screen, const char *device_name,
screen_init_rendering(struct screen *screen, const char *window_title,
struct size frame_size, bool always_on_top) {
screen->frame_size = frame_size;
@@ -152,7 +152,7 @@ screen_init_rendering(struct screen *screen, const char *device_name,
#endif
}
screen->window = SDL_CreateWindow(device_name, SDL_WINDOWPOS_UNDEFINED,
screen->window = SDL_CreateWindow(window_title, SDL_WINDOWPOS_UNDEFINED,
SDL_WINDOWPOS_UNDEFINED,
window_size.width, window_size.height,
window_flags);