mirror of https://github.com/stella-emu/stella.git
Eliminated superfluous drawTIA() method, made it inline.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3187 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
e456406b69
commit
f1a10c3143
|
@ -272,7 +272,7 @@ void FrameBuffer::update()
|
|||
myOSystem.console().fry();
|
||||
|
||||
// And update the screen
|
||||
drawTIA();
|
||||
myTIASurface->render();
|
||||
|
||||
// Show frame statistics
|
||||
if(myStatsMsg.enabled)
|
||||
|
@ -296,7 +296,7 @@ void FrameBuffer::update()
|
|||
|
||||
case EventHandler::S_PAUSE:
|
||||
{
|
||||
drawTIA();
|
||||
myTIASurface->render();
|
||||
|
||||
// Show a pause message every 5 seconds
|
||||
if(myPausedCount++ >= 7*myOSystem.frameRate())
|
||||
|
@ -309,14 +309,14 @@ void FrameBuffer::update()
|
|||
|
||||
case EventHandler::S_MENU:
|
||||
{
|
||||
drawTIA();
|
||||
myTIASurface->render();
|
||||
myOSystem.menu().draw(true);
|
||||
break; // S_MENU
|
||||
}
|
||||
|
||||
case EventHandler::S_CMDMENU:
|
||||
{
|
||||
drawTIA();
|
||||
myTIASurface->render();
|
||||
myOSystem.commandMenu().draw(true);
|
||||
break; // S_CMDMENU
|
||||
}
|
||||
|
@ -470,12 +470,6 @@ inline void FrameBuffer::drawMessage()
|
|||
myMsg.enabled = false;
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
inline void FrameBuffer::drawTIA()
|
||||
{
|
||||
myTIASurface->render();
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
shared_ptr<FBSurface> FrameBuffer::allocateSurface(int w, int h, const uInt32* data)
|
||||
{
|
||||
|
|
|
@ -411,12 +411,6 @@ class FrameBuffer
|
|||
*/
|
||||
void drawMessage();
|
||||
|
||||
/**
|
||||
This method should be called anytime the TIA needs to be redrawn
|
||||
to the screen.
|
||||
*/
|
||||
void drawTIA();
|
||||
|
||||
/**
|
||||
Issues a 'free' and 'reload' instruction to all surfaces that the
|
||||
framebuffer knows about.
|
||||
|
|
Loading…
Reference in New Issue