Fix inverted check

SDL_RenderSetLogicalSize() returns 0 on success.

Refs fc8942aa03
This commit is contained in:
Romain Vimont 2022-04-28 20:40:20 +02:00
parent 05d84084ef
commit 76b3fcf986

View file

@ -98,7 +98,7 @@ sc_screen_otg_init(struct sc_screen_otg *screen,
if (icon) {
SDL_SetWindowIcon(screen->window, icon);
if (!SDL_RenderSetLogicalSize(screen->renderer, icon->w, icon->h)) {
if (SDL_RenderSetLogicalSize(screen->renderer, icon->w, icon->h)) {
LOGW("Could not set renderer logical size: %s", SDL_GetError());
// don't fail
}