mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-24 07:06:36 +00:00
Refactor QD ports so they no longer need to be the first member of draw surfaces
This commit is contained in:
@@ -46,15 +46,10 @@ void OffsetRect(Rect *rect, int right, int down)
|
||||
|
||||
DrawSurface *GetGraphicsPort()
|
||||
{
|
||||
PortabilityLayer::QDPort *port = PortabilityLayer::QDManager::GetInstance()->GetPort();
|
||||
|
||||
DrawSurface *grafPtr = reinterpret_cast<DrawSurface *>(port);
|
||||
assert(&grafPtr->m_port == port);
|
||||
|
||||
return grafPtr;
|
||||
return PortabilityLayer::QDManager::GetInstance()->GetPort();
|
||||
}
|
||||
|
||||
void SetGraphicsPort(DrawSurface *gw)
|
||||
{
|
||||
PortabilityLayer::QDManager::GetInstance()->SetPort(&gw->m_port);
|
||||
PortabilityLayer::QDManager::GetInstance()->SetPort(gw);
|
||||
}
|
||||
|
Reference in New Issue
Block a user