minor os/2 stuff merged from the bitwiseworks' fork

This commit is contained in:
Ozkan Sezer
2023-07-28 23:55:50 +03:00
parent 3845fd3c49
commit 38a5aed974
5 changed files with 12 additions and 4 deletions

View File

@@ -702,10 +702,14 @@ static int joyGetEnv(struct _joycfg * joydata)
char tempnumber[5]; /* Temporary place to put numeric texts */
joyenv = SDL_getenv("SDL_OS2_JOYSTICK");
if (joyenv == NULL) return 0;
if (joyenv == NULL) {
return 0;
}
/* Joystick Environment is defined! */
while (*joyenv == ' ' && *joyenv != 0) joyenv++; /* jump spaces... */
while (*joyenv == ' ' && *joyenv != 0) {
joyenv++; /* jump spaces... */
}
/* If the string name starts with '... get if fully */
if (*joyenv == '\'') {