Add option to specify the initial window position

Add --window-x and --window-y parameters.

Signed-off-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
Diego Fernando Díaz A
2019-08-29 00:25:17 -05:00
committed by Romain Vimont
parent 771bd8404d
commit ce5635f28c
5 changed files with 57 additions and 7 deletions

View File

@@ -55,7 +55,8 @@ screen_init(struct screen *screen);
// initialize screen, create window, renderer and texture (window is hidden)
bool
screen_init_rendering(struct screen *screen, const char *window_title,
struct size frame_size, bool always_on_top);
struct size frame_size, bool always_on_top,
int16_t window_x, int16_t window_y);
// show the window
void