Skip to content

Display and control your Android device

Allow window position or size setting to fail

Romain Vimontdc5dba515b30
diff --git a/app/src/util/sdl.c b/app/src/util/sdl.c
index 84ce357d..858a2563 100644
--- a/app/src/util/sdl.c
+++ b/app/src/util/sdl.c
@@ -79,8 +79,7 @@ void
sc_sdl_set_window_size(SDL_Window *window, struct sc_size size) {
bool ok = SDL_SetWindowSize(window, size.width, size.height);
if (!ok) {
- LOGE("Could not set window size: %s", SDL_GetError());
- assert(!"unexpected");
+ LOGD("Could not set window size: %s", SDL_GetError());
}
}
@@ -107,8 +106,7 @@ void
sc_sdl_set_window_position(SDL_Window *window, struct sc_point point) {
bool ok = SDL_SetWindowPosition(window, point.x, point.y);
if (!ok) {
- LOGE("Could not set window position: %s", SDL_GetError());
- assert(!"unexpected");
+ LOGD("Could not set window position: %s", SDL_GetError());
}
}