aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-16 13:56:18 +0200
committerEinar Johan Trøan Sømåen2012-07-16 13:56:18 +0200
commite8d3f0b020718ce37be7f8dbe38f1702228a2c7f (patch)
treed483450a7e8019317d80e8c98ed50ed4bcee4dac /engines/wintermute
parent2c70a0054da7a95e267aae4cc656cc90ada29e00 (diff)
downloadscummvm-rg350-e8d3f0b020718ce37be7f8dbe38f1702228a2c7f.tar.gz
scummvm-rg350-e8d3f0b020718ce37be7f8dbe38f1702228a2c7f.tar.bz2
scummvm-rg350-e8d3f0b020718ce37be7f8dbe38f1702228a2c7f.zip
WINTERMUTE: Use 32bpp surfaces for drawing TTF-fonts.
Diffstat (limited to 'engines/wintermute')
-rw-r--r--engines/wintermute/Base/font/BFontTT.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/Base/font/BFontTT.cpp b/engines/wintermute/Base/font/BFontTT.cpp
index ec20c0e393..bf59007e0e 100644
--- a/engines/wintermute/Base/font/BFontTT.cpp
+++ b/engines/wintermute/Base/font/BFontTT.cpp
@@ -260,9 +260,9 @@ CBSurface *CBFontTT::renderTextToTexture(const WideString &text, int width, TTex
warning("%s %d %d %d %d", text.c_str(), RGBCOLGetR(_layers[0]->_color), RGBCOLGetG(_layers[0]->_color), RGBCOLGetB(_layers[0]->_color), RGBCOLGetA(_layers[0]->_color));
// void drawString(Surface *dst, const Common::String &str, int x, int y, int w, uint32 color, TextAlign align = kTextAlignLeft, int deltax = 0, bool useEllipsis = true) const;
Graphics::Surface *surface = new Graphics::Surface();
- surface->create((uint16)width, (uint16)(_lineHeight * lines.size()), Graphics::PixelFormat(2, 5, 5, 5, 1, 10, 5, 0, 15));
+ surface->create((uint16)width, (uint16)(_lineHeight * lines.size()), Graphics::PixelFormat(4, 8, 8, 8, 8, 24, 16, 8, 0));
- uint16 useColor = 0xffff;
+ uint32 useColor = 0xffffffff;
Common::Array<Common::String>::iterator it;
int heightOffset = 0;
for (it = lines.begin(); it != lines.end(); it++) {