mirror of https://github.com/stella-emu/stella.git
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:
parent
1619c1a349
commit
1e35527f01
|
@ -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);
|
||||
|
|
|
@ -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"
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue