diff options
author | Max Horn | 2009-01-22 04:35:10 +0000 |
---|---|---|
committer | Max Horn | 2009-01-22 04:35:10 +0000 |
commit | abc06ca18e69c336d701707933b4dc490dd86e94 (patch) | |
tree | a6dc57ffd954e3e85f7be813fe25d8341180c2ea /backends/vkeybd | |
parent | a2c671da977acda9f9503413fb38490dcceda76d (diff) | |
download | scummvm-rg350-abc06ca18e69c336d701707933b4dc490dd86e94.tar.gz scummvm-rg350-abc06ca18e69c336d701707933b4dc490dd86e94.tar.bz2 scummvm-rg350-abc06ca18e69c336d701707933b4dc490dd86e94.zip |
Moved Graphics::PixelFormat into its own header file; turned RGBToColor etc. into methods, and added an operator==
svn-id: r35993
Diffstat (limited to 'backends/vkeybd')
-rw-r--r-- | backends/vkeybd/virtual-keyboard-parser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/vkeybd/virtual-keyboard-parser.cpp b/backends/vkeybd/virtual-keyboard-parser.cpp index e643161333..330b9a5d6a 100644 --- a/backends/vkeybd/virtual-keyboard-parser.cpp +++ b/backends/vkeybd/virtual-keyboard-parser.cpp @@ -273,7 +273,7 @@ bool VirtualKeyboardParser::parserCallback_layout(ParserNode *node) { g = 0; b = 255; } - _mode->transparentColor = Graphics::RGBToColor(r, g, b, format); + _mode->transparentColor = format.RGBToColor(r, g, b); if (node->values.contains("display_font_color")) { if (!parseIntegerKey(node->values["display_font_color"].c_str(), 3, &r, &g, &b)) @@ -281,7 +281,7 @@ bool VirtualKeyboardParser::parserCallback_layout(ParserNode *node) { } else { r = g = b = 0; // default to black } - _mode->displayFontColor = Graphics::RGBToColor(r, g, b, format); + _mode->displayFontColor = format.RGBToColor(r, g, b); _layoutParsed = true; |