GUI: Replaced ThemeParser::_drawFunction hashmap by a static function getDrawingFunctionCallback which maps strings to draw funcs

svn-id: r41931
This commit is contained in:
Max Horn 2009-06-28 19:57:27 +00:00
parent 531e7a8c78
commit a882a6f467
5 changed files with 44 additions and 34 deletions

View file

@ -27,7 +27,6 @@
#define THEME_PARSER_H
#include "common/scummsys.h"
#include "common/system.h"
#include "common/xmlparser.h"
namespace GUI {
@ -35,8 +34,6 @@ namespace GUI {
class ThemeEngine;
class ThemeParser : public Common::XMLParser {
typedef void (Graphics::VectorRenderer::*DrawingFunctionCallback)(const Common::Rect &, const Graphics::DrawStep &);
public:
ThemeParser(ThemeEngine *parent);
@ -249,8 +246,6 @@ protected:
Graphics::DrawStep *_defaultStepGlobal;
Graphics::DrawStep *_defaultStepLocal;
Common::HashMap<Common::String, DrawingFunctionCallback, Common::IgnoreCase_Hash, Common::IgnoreCase_EqualTo> _drawFunctions;
struct PaletteColor {
uint8 r, g, b;
};