From 1426b3fb4fced04de711016b4f590662df644fb1 Mon Sep 17 00:00:00 2001 From: pogokeen Date: Tue, 25 Jun 2019 18:35:11 +0000 Subject: [PATCH] winlayer.cpp: fix videoBeginDrawing() to return an intptr_t to mirrorBuffer when inpreparemirror git-svn-id: https://svn.eduke32.com/eduke32@7735 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/winlayer.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/build/src/winlayer.cpp b/source/build/src/winlayer.cpp index e3490f6db..81b22ce26 100644 --- a/source/build/src/winlayer.cpp +++ b/source/build/src/winlayer.cpp @@ -1853,7 +1853,14 @@ void videoBeginDrawing(void) if (offscreenrendering) return; - frameplace = fullscreen ? (intptr_t)lpOffscreen : (intptr_t)lpPixels; + if (inpreparemirror) + { + frameplace = (intptr_t)mirrorBuffer; + } + else + { + frameplace = fullscreen ? (intptr_t)lpOffscreen : (intptr_t)lpPixels; + } if (!modechange) return;