Skip to content

Commit 10db49b

Browse files
committed
vdisp/sdl2,sdl3: fix typo in "size" (was "siz")
+ remove trailing '=' - although it works, IS_KEY_PREFIX is meant to be called without it
1 parent 0953b8c commit 10db49b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/video_display/sdl2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @author Martin Pulec <[email protected]>
66
*/
77
/*
8-
* Copyright (c) 2018-2024 CESNET
8+
* Copyright (c) 2018-2025 CESNET
99
* All rights reserved.
1010
*
1111
* Redistribution and use in source and binary forms, with or without
@@ -695,7 +695,7 @@ static void *display_sdl2_init(struct module *parent, const char *fmt, unsigned
695695
} else if (IS_PREFIX(tok, "keep-aspect")) {
696696
s->keep_aspect = true;
697697
} else if (IS_KEY_PREFIX(tok, "fixed_size") ||
698-
IS_KEY_PREFIX(tok, "siz=")) {
698+
IS_KEY_PREFIX(tok, "size")) {
699699
if (!set_size(s, tok)) {
700700
free(s);
701701
return NULL;

src/video_display/sdl3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ display_sdl3_init(struct module *parent, const char *fmt, unsigned int flags)
963963
} else if (IS_PREFIX(tok, "keep-aspect")) {
964964
s->keep_aspect = true;
965965
} else if (IS_KEY_PREFIX(tok, "fixed_size") ||
966-
IS_KEY_PREFIX(tok, "siz=")) {
966+
IS_KEY_PREFIX(tok, "size")) {
967967
if (!set_size(s, tok)) {
968968
free(s);
969969
return NULL;

0 commit comments

Comments
 (0)