diff options
author | Eugene Sandulenko | 2017-01-25 12:23:45 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-01-25 12:44:24 +0100 |
commit | 368c0928b60fb6b60937235c7108543ad791ecc2 (patch) | |
tree | 3daeee91f858f04e1f2c78bbec9ac769edac5833 /engines/director/score.cpp | |
parent | e2b1cd5c80256a924b24a4b1a51dfb9ee2a71857 (diff) | |
download | scummvm-rg350-368c0928b60fb6b60937235c7108543ad791ecc2.tar.gz scummvm-rg350-368c0928b60fb6b60937235c7108543ad791ecc2.tar.bz2 scummvm-rg350-368c0928b60fb6b60937235c7108543ad791ecc2.zip |
DIRECTOR: Added test for drawing scaled MacFonts
Diffstat (limited to 'engines/director/score.cpp')
-rw-r--r-- | engines/director/score.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/director/score.cpp b/engines/director/score.cpp index e5e137c881..9864a4c208 100644 --- a/engines/director/score.cpp +++ b/engines/director/score.cpp @@ -27,6 +27,7 @@ #include "engines/util.h" #include "graphics/font.h" +#include "graphics/fonts/macfont.h" #include "graphics/palette.h" #include "graphics/macgui/macfontmanager.h" #include "graphics/macgui/macwindowmanager.h" @@ -105,6 +106,19 @@ void DirectorEngine::testFontScaling() { surface.create(w, h); surface.clear(255); + Graphics::MacFont origFont(Graphics::kMacFontNewYork, 18); + + const Graphics::MacFONTFont *font1 = (const Graphics::MacFONTFont *)_wm->_fontMan->getFont(origFont); + + Graphics::MacFONTFont::testBlit(font1, &surface, 0, x, y, 500); + + Graphics::MacFont bigFont(Graphics::kMacFontNewYork, 15); + + font1 = (const Graphics::MacFONTFont *)_wm->_fontMan->getFont(bigFont); + + Graphics::MacFONTFont::testBlit(font1, &surface, 0, x, y + 50, 500); + +#if 0 const char *text = "d"; for (int i = 9; i <= 40; i++) { @@ -121,6 +135,7 @@ void DirectorEngine::testFontScaling() { x += width + 1; } +#endif g_system->copyRectToScreen(surface.getPixels(), surface.pitch, 0, 0, w, h); |