49 lines
978 B
C++
49 lines
978 B
C++
#include "StdAfx.h"
|
|
|
|
#include "linux/linuxvideo.h"
|
|
#include "NTSC.h"
|
|
|
|
void LinuxVideo::Initialize()
|
|
{
|
|
static_assert(sizeof(bgra_t) == 4, "Invalid size of bgra_t");
|
|
VideoResetState();
|
|
|
|
const int numberOfPixels = GetFrameBufferWidth() * GetFrameBufferHeight();
|
|
g_pFramebufferbits = static_cast<uint8_t *>(calloc(sizeof(bgra_t), numberOfPixels));
|
|
NTSC_VideoInit(g_pFramebufferbits);
|
|
}
|
|
|
|
void LinuxVideo::Destroy()
|
|
{
|
|
free(g_pFramebufferbits);
|
|
g_pFramebufferbits = nullptr;
|
|
NTSC_Destroy();
|
|
}
|
|
|
|
void LinuxVideo::VideoRedrawScreenDuringFullSpeed(DWORD dwCyclesThisFrame, bool bInit)
|
|
{
|
|
}
|
|
|
|
void LinuxVideo::VideoRedrawScreenAfterFullSpeed(DWORD dwCyclesThisFrame)
|
|
{
|
|
}
|
|
|
|
void LinuxVideo::VideoRefreshScreen(uint32_t uRedrawWholeScreenVideoMode, bool bRedrawWholeScreen)
|
|
{
|
|
}
|
|
|
|
void LinuxVideo::Video_RedrawAndTakeScreenShot(const char* pScreenshotFilename)
|
|
{
|
|
}
|
|
|
|
void LinuxVideo::ChooseMonochromeColor()
|
|
{
|
|
}
|
|
|
|
void LinuxVideo::Benchmark()
|
|
{
|
|
}
|
|
|
|
void LinuxVideo::DisplayLogo()
|
|
{
|
|
}
|