Fix inverted check
SDL_RenderSetLogicalSize() returns 0 on success.
Refs fc8942aa03
This commit is contained in:
parent
05d84084ef
commit
76b3fcf986
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ sc_screen_otg_init(struct sc_screen_otg *screen,
|
||||||
if (icon) {
|
if (icon) {
|
||||||
SDL_SetWindowIcon(screen->window, 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());
|
LOGW("Could not set renderer logical size: %s", SDL_GetError());
|
||||||
// don't fail
|
// don't fail
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue