diff options
Diffstat (limited to 'os/oscolor.c')
-rw-r--r-- | os/oscolor.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/os/oscolor.c b/os/oscolor.c index d53e4d8ff..e1756926d 100644 --- a/os/oscolor.c +++ b/os/oscolor.c @@ -225,16 +225,9 @@ OsInitColors(void) if (!was_here) { -#ifndef __UNIXOS2__ path = (char*)ALLOCATE_LOCAL(strlen(rgbPath) +5); strcpy(path, rgbPath); strcat(path, ".txt"); -#else - char *tmp = (char*)__XOS2RedirRoot(rgbPath); - path = (char*)ALLOCATE_LOCAL(strlen(tmp) +5); - strcpy(path, tmp); - strcat(path, ".txt"); -#endif if (!(rgb = fopen(path, "r"))) { ErrorF( "Couldn't open RGB_DB '%s'\n", rgbPath ); @@ -245,11 +238,7 @@ OsInitColors(void) while(fgets(line, sizeof(line), rgb)) { lineno++; -#ifndef __UNIXOS2__ if (sscanf(line,"%d %d %d %[^\n]\n", &red, &green, &blue, name) == 4) -#else - if (sscanf(line,"%d %d %d %[^\n\r]\n", &red, &green, &blue, name) == 4) -#endif { if (red >= 0 && red <= 0xff && green >= 0 && green <= 0xff && |