Skip to content

Commit

Permalink
Fix inverted check
Browse files Browse the repository at this point in the history
SDL_RenderSetLogicalSize() returns 0 on success.

Refs fc8942a
  • Loading branch information
rom1v committed Apr 28, 2022
1 parent 05d8408 commit 76b3fcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/usb/screen_otg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 76b3fcf

Please sign in to comment.