mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-20 22:35:41 +00:00
wayland: reset orientation bitmask before reading values from hint on QtWayland
Signed-off-by: Alibek Omarov <a1ba.omarov@gmail.com>
This commit is contained in:
committed by
Sam Lantinga
parent
7f7ea909bc
commit
68e3e99087
@@ -1720,6 +1720,8 @@ static void SDLCALL QtExtendedSurface_OnHintChanged(void *userdata, const char *
|
||||
|
||||
if (newValue != NULL) {
|
||||
const char *value_attempt = newValue;
|
||||
|
||||
orientation = 0;
|
||||
while (value_attempt != NULL && *value_attempt != 0) {
|
||||
const char *value_attempt_end = SDL_strchr(value_attempt, ',');
|
||||
size_t value_attempt_len = (value_attempt_end != NULL) ? (value_attempt_end - value_attempt)
|
||||
|
||||
Reference in New Issue
Block a user