Added medium and large console fonts. These aren't exposed to the UI yet.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2779 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2013-07-31 16:53:39 +00:00
parent 1619c1a349
commit 1e35527f01
4 changed files with 8487 additions and 4 deletions

View File

@ -169,8 +169,8 @@ FBInitStatus FrameBuffer::initialize(const string& title,
// Create surfaces for TIA statistics and general messages
myStatsMsg.color = kBtnTextColor;
myStatsMsg.w = myOSystem->consoleFont().getMaxCharWidth() * 24 + 2;
myStatsMsg.h = (myOSystem->consoleFont().getFontHeight() + 2) * 2;
myStatsMsg.w = myOSystem->infoFont().getMaxCharWidth() * 24 + 2;
myStatsMsg.h = (myOSystem->infoFont().getFontHeight() + 2) * 2;
if(myStatsMsg.surface == NULL)
{
@ -223,9 +223,9 @@ void FrameBuffer::update()
myOSystem->console().tia().scanlines(),
myOSystem->console().getFramerate(), info.DisplayFormat.c_str());
myStatsMsg.surface->fillRect(0, 0, myStatsMsg.w, myStatsMsg.h, kBGColor);
myStatsMsg.surface->drawString(myOSystem->consoleFont(),
myStatsMsg.surface->drawString(myOSystem->infoFont(),
msg, 1, 1, myStatsMsg.w, myStatsMsg.color, kTextAlignLeft);
myStatsMsg.surface->drawString(myOSystem->consoleFont(),
myStatsMsg.surface->drawString(myOSystem->infoFont(),
info.BankSwitch, 1, 15, myStatsMsg.w, myStatsMsg.color, kTextAlignLeft);
myStatsMsg.surface->addDirtyRect(0, 0, 0, 0); // force a full draw
myStatsMsg.surface->setPos(myImageRect.x() + 1, myImageRect.y() + 1);

View File

@ -62,6 +62,8 @@
#include "StellaMediumFont.hxx"
#include "StellaLargeFont.hxx"
#include "ConsoleFont.hxx"
#include "ConsoleMediumFont.hxx"
#include "ConsoleLargeFont.hxx"
#include "Widget.hxx"
#include "Console.hxx"
#include "Random.hxx"

4726
src/gui/ConsoleLargeFont.hxx Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff