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
This commit is contained in:
pogokeen 2019-06-25 18:35:11 +00:00 committed by Christoph Oelckers
parent c2340dd409
commit 1426b3fb4f

View file

@ -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;