ultimatepp/bazaar/LinuxFrameBuffer/Draw.cpp
zbych 4844054f9a LinuxFrameBuffer: attempt to disable keys leakage to the console via virtual terminal API
git-svn-id: svn://ultimatepp.org/upp/trunk@14613 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2020-06-20 22:40:10 +00:00

14 lines
300 B
C++

#include "LinuxFrameBuffer.h"
using namespace Upp;
SystemDraw& LinuxFrameBuffer::BeginDraw()
{
return screen.GetSystemDraw();
}
void LinuxFrameBuffer::CommitDraw()
{
memcpy(screen.GetBuffer(), ~screen.GetImageBuffer(), screen.GetImageBuffer().GetLength() * sizeof(RGBA));
}