diff options
| author | Einar Johan Trøan Sømåen | 2012-06-13 15:33:45 +0200 |
|---|---|---|
| committer | Einar Johan Trøan Sømåen | 2012-06-13 15:33:45 +0200 |
| commit | 879d6902f4f55db949ea2fe096611f8cbaabc652 (patch) | |
| tree | acaa9a57e677486bac2d1f5381c47b20874db14f | |
| parent | 0793c961a4066cc0396e781516d63e88a8f92c97 (diff) | |
| download | scummvm-rg350-879d6902f4f55db949ea2fe096611f8cbaabc652.tar.gz scummvm-rg350-879d6902f4f55db949ea2fe096611f8cbaabc652.tar.bz2 scummvm-rg350-879d6902f4f55db949ea2fe096611f8cbaabc652.zip | |
WINTERMUTE: Use the correct height for TTF-fonts.
| -rw-r--r-- | engines/wintermute/Base/BFontTT.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/wintermute/Base/BFontTT.cpp b/engines/wintermute/Base/BFontTT.cpp index 6c61d6bc0d..3c72d974ab 100644 --- a/engines/wintermute/Base/BFontTT.cpp +++ b/engines/wintermute/Base/BFontTT.cpp @@ -267,7 +267,7 @@ CBSurface *CBFontTT::RenderTextToTexture(const WideString &text, int width, TTex warning("%s %d %d %d %d", text.c_str(), D3DCOLGetR(_layers[0]->_color), D3DCOLGetG(_layers[0]->_color),D3DCOLGetB(_layers[0]->_color),D3DCOLGetA(_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(width, _fontHeight * lines.size(), Graphics::PixelFormat(2, 5, 5, 5, 1, 10, 5, 0, 15));
+ surface->create(width, _lineHeight * lines.size(), Graphics::PixelFormat(2, 5, 5, 5, 1, 10, 5, 0, 15));
uint16 useColor = 0xffff;
Common::Array<Common::String>::iterator it;
|
