synced with scummvm to 2011-Apr-13
This commit is contained in:
parent
f0a4299aef
commit
0640dcf2c7
347 changed files with 53648 additions and 8521 deletions
|
@ -23,6 +23,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include "common/sys.h"
|
||||
|
||||
#ifdef ENABLE_VKEYBD
|
||||
|
||||
|
@ -34,6 +35,7 @@
|
|||
#include "common/system.h"
|
||||
#include "common/archive.h"
|
||||
#include "common/tokenizer.h"
|
||||
#include "common/stream.h"
|
||||
|
||||
#include "graphics/imagedec.h"
|
||||
|
||||
|
@ -270,7 +272,7 @@ bool VirtualKeyboardParser::parserCallback_layout(ParserNode *node) {
|
|||
|
||||
int r, g, b;
|
||||
if (node->values.contains("transparent_color")) {
|
||||
if (!parseIntegerKey(node->values["transparent_color"].c_str(), 3, &r, &g, &b))
|
||||
if (!parseIntegerKey(node->values["transparent_color"], 3, &r, &g, &b))
|
||||
return parserError("Could not parse color value");
|
||||
} else {
|
||||
// default to purple
|
||||
|
@ -281,7 +283,7 @@ bool VirtualKeyboardParser::parserCallback_layout(ParserNode *node) {
|
|||
_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))
|
||||
if (!parseIntegerKey(node->values["display_font_color"], 3, &r, &g, &b))
|
||||
return parserError("Could not parse color value");
|
||||
} else {
|
||||
r = g = b = 0; // default to black
|
||||
|
@ -336,7 +338,7 @@ byte VirtualKeyboardParser::parseFlags(const String& flags) {
|
|||
|
||||
bool VirtualKeyboardParser::parseRect(Rect &rect, const String& coords) {
|
||||
int x1, y1, x2, y2;
|
||||
if (!parseIntegerKey(coords.c_str(), 4, &x1, &y1, &x2, &y2))
|
||||
if (!parseIntegerKey(coords, 4, &x1, &y1, &x2, &y2))
|
||||
return parserError("Invalid coords for rect area");
|
||||
rect.left = x1;
|
||||
rect.top = y1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue