Permalink
Browse files

Merge pull request #171 from cnvogelg/winopt

added options to create a minimized or hidden window
  • Loading branch information...
FrodeSolheim committed Mar 14, 2018
2 parents 3155eea + a965405 commit 4ae84681cee54cc71e576071f8710fe5745db80b
Showing with 11 additions and 1 deletion.
  1. +11 −1 libfsemu/src/ml/sdl.c
@@ -329,6 +329,16 @@ static void set_video_mode()
flags |= SDL_WINDOW_BORDERLESS;
}

// special flags for command line usage
if (fs_config_get_boolean("window_hidden") == 1) {
fs_log("hidden window requested\n");
flags |= SDL_WINDOW_HIDDEN;
}
if (fs_config_get_boolean("window_minimized") == 1) {
fs_log("minimized window requested\n");
flags |= SDL_WINDOW_MINIMIZED;
}

#if 0
Uint8 data[] = "\0";
SDL_Cursor *cursor = SDL_CreateCursor(data, data, 8, 1, 0, 0);
@@ -1080,7 +1090,7 @@ int fs_ml_event_loop(void)
//printf("ISREL %d\n", SDL_GetRelativeMouseMode());

if (g_fs_log_input) {
fs_log("SDL mouse event x: %4d y: %4d xrel: %4d yrel: %4d\n",
fs_log("SDL mouse event x: %4d y: %4d xrel: %4d yrel: %4d\n",
event.motion.x, event.motion.y,
event.motion.xrel, event.motion.yrel);
}

0 comments on commit 4ae8468

Please sign in to comment.