- Moved the text color definitions out of the executable and into an external

data file.
- Removed the setcolor CCMD. It's been obsolete for years, ever since color-
  aware cvars were added.
- Changed V_GetColorStringByName() to return an FString, because it did a
  copystring() call.
- Extended V_GetColorFromString() so that it accepts HTML-style #RRGGBB and
  #RGB color strings.


SVN r313 (trunk)
This commit is contained in:
Randy Heit 2006-08-30 02:38:39 +00:00
commit 2fb55622e7
13 changed files with 941 additions and 297 deletions

View file

@ -249,7 +249,7 @@ void FJPEGTexture::MakeTexture ()
(cinfo.out_color_space == JCS_CMYK && cinfo.num_components == 4) ||
(cinfo.out_color_space == JCS_GRAYSCALE && cinfo.num_components == 1)))
{
Printf (TEXTCOLOR_ORANGE "Unsupported color format\n", Name);
Printf (TEXTCOLOR_ORANGE "Unsupported color format\n");
throw -1;
}
@ -297,6 +297,11 @@ void FJPEGTexture::MakeTexture ()
in += 4;
}
break;
default:
// The other colorspaces were considered above and discarded,
// but GCC will complain without a default for them here.
break;
}
y++;
}