aboutsummaryrefslogtreecommitdiff
path: root/src/picow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/picow.c')
-rw-r--r--src/picow.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/picow.c b/src/picow.c
index f171e22..1918889 100644
--- a/src/picow.c
+++ b/src/picow.c
@@ -57,7 +57,7 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char **argv) {
}
*appstate = state;
- if (!SDL_InitSubSystem(SDL_INIT_GAMEPAD)) {
+ if (!SDL_InitSubSystem(SDL_INIT_AUDIO | SDL_INIT_GAMEPAD | SDL_INIT_VIDEO)) {
return failf("failed to initialize SDL");
}
@@ -89,6 +89,10 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char **argv) {
SDL_LogWarn(0, "failed to enable V-sync: %s", SDL_GetError());
}
+ if (!SDL_HideCursor()) {
+ SDL_LogWarn(0, "unable to hide cursor: %s", SDL_GetError());
+ }
+
if (state->config->debug) {
state->debug = pw_debug_init(state->renderer);
if (!state->debug) {