AppleWin/source/linux/context.cpp

35 lines
519 B
C++
Raw Normal View History

#include "StdAfx.h"
2021-01-10 11:47:44 +00:00
#include "linux/context.h"
#include "Interface.h"
#include "linux/duplicates/PropertySheet.h"
#include "linux/linuxframe.h"
2021-01-10 11:47:44 +00:00
namespace
{
std::shared_ptr<FrameBase> sg_LinuxFrame;
}
IPropertySheet& GetPropertySheet()
{
static CPropertySheet sg_PropertySheet;
return sg_PropertySheet;
}
FrameBase& GetFrame()
{
2021-01-10 11:47:44 +00:00
return *sg_LinuxFrame;
}
void SetFrame(const std::shared_ptr<FrameBase> & frame)
{
sg_LinuxFrame = frame;
}
Video& GetVideo()
{
static Video sg_Video;
return sg_Video;
}