don't read mouse in nodrawers mode

This commit is contained in:
Roman Fomin 2023-12-15 21:56:11 +07:00
parent fadec9bc90
commit 4066e6c5e0

View File

@ -233,17 +233,6 @@ void D_Display (void)
int wipestart;
boolean done, wipe, redrawsbar;
if (uncapped)
{
// [AM] Figure out how far into the current tic we're in as a fixed_t.
fractionaltic = I_GetFracTime();
if (window_focused)
{
I_ReadMouse();
}
}
if (demobar && PLAYBACK_SKIP)
{
if (HU_DemoProgressBar(false))
@ -256,6 +245,17 @@ void D_Display (void)
if (nodrawers) // for comparative timing / profiling
return;
if (uncapped)
{
// [AM] Figure out how far into the current tic we're in as a fixed_t.
fractionaltic = I_GetFracTime();
if (window_focused)
{
I_ReadMouse();
}
}
enable_drs = true;
redrawsbar = false;