diff options
Diffstat (limited to 'src/interface/Engine.cpp')
| -rw-r--r-- | src/interface/Engine.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/interface/Engine.cpp b/src/interface/Engine.cpp index 751cbcb..aea89e7 100644 --- a/src/interface/Engine.cpp +++ b/src/interface/Engine.cpp @@ -74,7 +74,10 @@ void Engine::ShowWindow(Window * window) prevBuffers.push(lastBuffer); } lastBuffer = (pixel*)malloc((width_ * height_) * PIXELSIZE); + +#ifndef OGLR memcpy(lastBuffer, g->vid, (width_ * height_) * PIXELSIZE); +#endif windows.push(state_); } @@ -167,7 +170,9 @@ void Engine::Draw() if(lastBuffer && !(state_->Position.X == 0 && state_->Position.Y == 0 && state_->Size.X == width_ && state_->Size.Y == height_)) { g->Clear(); +#ifndef OGLR memcpy(g->vid, lastBuffer, (width_ * height_) * PIXELSIZE); +#endif } else { |
