mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-08-28 17:41:38 +00:00
Backport simplify flags PR #7220
This commit is contained in:
@@ -530,7 +530,7 @@ WatchJoystick(SDL_Joystick *joystick)
|
||||
break;
|
||||
}
|
||||
|
||||
if ((event.key.keysym.sym != SDLK_ESCAPE)) {
|
||||
if (event.key.keysym.sym != SDLK_ESCAPE) {
|
||||
break;
|
||||
}
|
||||
SDL_FALLTHROUGH;
|
||||
@@ -746,7 +746,7 @@ int main(int argc, char *argv[])
|
||||
while (SDL_PollEvent(&event) > 0) {
|
||||
switch (event.type) {
|
||||
case SDL_KEYDOWN:
|
||||
if ((event.key.keysym.sym != SDLK_ESCAPE)) {
|
||||
if (event.key.keysym.sym != SDLK_ESCAPE) {
|
||||
break;
|
||||
}
|
||||
SDL_FALLTHROUGH;
|
||||
|
||||
@@ -703,7 +703,7 @@ int main(int argc, char *argv[])
|
||||
if (textlen == 0) {
|
||||
break;
|
||||
}
|
||||
if ((text[textlen - 1] & 0x80) == 0x00) {
|
||||
if (!(text[textlen - 1] & 0x80)) {
|
||||
/* One byte */
|
||||
text[textlen - 1] = 0x00;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user