From 5556fc7f72856fde1746c89792d97bd826da33a2 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 23 Jan 2009 23:50:54 +0000 Subject: Changed Graphics::ImageDecoder to allow custom PixelFormats svn-id: r36026 --- backends/vkeybd/virtual-keyboard-parser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'backends/vkeybd') diff --git a/backends/vkeybd/virtual-keyboard-parser.cpp b/backends/vkeybd/virtual-keyboard-parser.cpp index 7034d90a30..73575d0d9a 100644 --- a/backends/vkeybd/virtual-keyboard-parser.cpp +++ b/backends/vkeybd/virtual-keyboard-parser.cpp @@ -256,13 +256,14 @@ bool VirtualKeyboardParser::parserCallback_layout(ParserNode *node) { if (!file) return parserError("Bitmap '%s' not found", _mode->bitmapName.c_str()); - _mode->image = Graphics::ImageDecoder::loadFile(*file); + const Graphics::PixelFormat format = g_system->getOverlayFormat(); + + _mode->image = Graphics::ImageDecoder::loadFile(*file, format); delete file; if (!_mode->image) return parserError("Error loading bitmap '%s'", _mode->bitmapName.c_str()); - const Graphics::PixelFormat format = g_system->getOverlayFormat(); int r, g, b; if (node->values.contains("transparent_color")) { if (!parseIntegerKey(node->values["transparent_color"].c_str(), 3, &r, &g, &b)) -- cgit v1.2.3