Skip to content
Snippets Groups Projects
Commit 37679bb4 authored by Lactozilla's avatar Lactozilla :speech_balloon:
Browse files

Organise

parent 16dafe52
Branches
Tags
No related merge requests found
...@@ -553,32 +553,40 @@ void F_RunWipe(UINT8 wipetype, boolean drawMenu) ...@@ -553,32 +553,40 @@ void F_RunWipe(UINT8 wipetype, boolean drawMenu)
I_Sleep(); I_Sleep();
lastwipetic = nowtime; lastwipetic = nowtime;
#ifdef HWRENDER // Wipe styles
if (rendermode == render_opengl) if (wipestyle == WIPESTYLE_COLORMAP)
{ {
// send in the wipe type and wipe frame because we need to cache the graphic #ifdef HWRENDER
if (wipestyle == WIPESTYLE_COLORMAP) if (rendermode == render_opengl)
{
// send in the wipe type and wipe frame because we need to cache the graphic
HWR_DoTintedWipe(wipetype, wipeframe-1); HWR_DoTintedWipe(wipetype, wipeframe-1);
}
else else
HWR_DoWipe(wipetype, wipeframe-1);
}
else
#endif #endif
{
if (wipestyle == WIPESTYLE_COLORMAP)
{ {
UINT8 *colormap = fadecolormap; UINT8 *colormap = fadecolormap;
if (wipestyleflags & WSF_TOWHITE) if (wipestyleflags & WSF_TOWHITE)
colormap += (FADECOLORMAPROWS * 256); colormap += (FADECOLORMAPROWS * 256);
F_DoColormapWipe(fmask, colormap); F_DoColormapWipe(fmask, colormap);
} }
// Draw the title card above the wipe
F_WipeStageTitle();
}
else
{
#ifdef HWRENDER
if (rendermode == render_opengl)
{
// send in the wipe type and wipe frame because we need to cache the graphic
HWR_DoWipe(wipetype, wipeframe-1);
}
else else
#endif
F_DoWipe(fmask); F_DoWipe(fmask);
} }
if (wipestyle == WIPESTYLE_COLORMAP)
F_WipeStageTitle();
I_OsPolling(); I_OsPolling();
I_UpdateNoBlit(); I_UpdateNoBlit();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment