mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-01-31 05:40:44 +00:00
Move code into R_UpdateFuzzPos
This commit is contained in:
parent
4554cf45f1
commit
398001b6cb
2 changed files with 14 additions and 7 deletions
|
@ -736,21 +736,26 @@ namespace swrenderer
|
|||
DrawerCommandQueue::QueueCommand<FillColumnRevSubClampPalCommand>();
|
||||
}
|
||||
|
||||
void R_DrawFuzzColumn()
|
||||
void R_UpdateFuzzPos()
|
||||
{
|
||||
using namespace drawerargs;
|
||||
|
||||
if (r_swtruecolor)
|
||||
DrawerCommandQueue::QueueCommand<DrawFuzzColumnRGBACommand>();
|
||||
else
|
||||
DrawerCommandQueue::QueueCommand<DrawFuzzColumnPalCommand>();
|
||||
|
||||
dc_yl = MAX(dc_yl, 1);
|
||||
dc_yh = MIN(dc_yh, fuzzviewheight);
|
||||
if (dc_yl <= dc_yh)
|
||||
fuzzpos = (fuzzpos + dc_yh - dc_yl + 1) % FUZZTABLE;
|
||||
}
|
||||
|
||||
void R_DrawFuzzColumn()
|
||||
{
|
||||
if (r_swtruecolor)
|
||||
DrawerCommandQueue::QueueCommand<DrawFuzzColumnRGBACommand>();
|
||||
else
|
||||
DrawerCommandQueue::QueueCommand<DrawFuzzColumnPalCommand>();
|
||||
|
||||
R_UpdateFuzzPos();
|
||||
}
|
||||
|
||||
void R_DrawAddColumn()
|
||||
{
|
||||
if (r_swtruecolor)
|
||||
|
|
|
@ -133,7 +133,9 @@ namespace swrenderer
|
|||
bool R_GetTransMaskDrawers(void(**drawColumn)());
|
||||
|
||||
const uint8_t *R_GetColumn(FTexture *tex, int col);
|
||||
|
||||
|
||||
void R_UpdateFuzzPos();
|
||||
|
||||
void R_DrawColumn();
|
||||
void R_DrawFuzzColumn();
|
||||
void R_DrawTranslatedColumn();
|
||||
|
|
Loading…
Reference in a new issue