minor os/2 stuff merged from the bitwiseworks' fork

This commit is contained in:
Ozkan Sezer committed 2023-07-28 23:55:50 +03:00
1 parent 3e341021c3
commit 7cc3248044
5 files changed
+12 -4

No files matched your search

+6 -2
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 == '\'') {