Menu work, move VOS queue interface

This commit is contained in:
elasota
2019-12-24 02:35:24 -05:00
parent 4c743c90b1
commit 3111609536
34 changed files with 828 additions and 92 deletions

View File

@@ -17,6 +17,7 @@ namespace PortabilityLayer
void GetPort(QDPort **port, GDevice ***gdHandle) override;
void SetPort(QDPort *gw, GDevice **gdHandle) override;
int NewGWorld(CGraf **gw, int depth, const Rect &bounds, ColorTable **colorTable, GDevice **device, int flags) override;
void DisposeGWorld(CGraf *gw) override;
QDState *GetState() override;
static QDManagerImpl *GetInstance();
@@ -93,6 +94,12 @@ namespace PortabilityLayer
return noErr;
}
void QDManagerImpl::DisposeGWorld(CGraf *gw)
{
gw->~CGraf();
MemoryManager::GetInstance()->Release(gw);
}
QDState *QDManagerImpl::GetState()
{
return m_port->GetState();