Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- exposed menu blur amount to engine interface
  • Loading branch information
alexey-lysiuk committed Jun 20, 2020
1 parent 04992f2 commit 18f2cf0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/common/engine/i_interface.cpp
Expand Up @@ -5,4 +5,5 @@ SystemCallbacks *sysCallbacks;
double refreshfreq;
FString endoomName;
bool batchrun;
float menuBlurAmount;

1 change: 1 addition & 0 deletions src/common/engine/i_interface.h
Expand Up @@ -31,3 +31,4 @@ struct WadStuff

extern FString endoomName;
extern bool batchrun;
extern float menuBlurAmount;
1 change: 1 addition & 0 deletions src/d_main.cpp
Expand Up @@ -3333,6 +3333,7 @@ static int D_DoomMain_Internal (void)
G_ParseMapInfo (iwad_info->MapInfo);
MessageBoxClass = gameinfo.MessageBoxClass;
endoomName = gameinfo.Endoom;
menuBlurAmount = gameinfo.bluramount;
ReadStatistics();

// MUSINFO must be parsed after MAPINFO
Expand Down
2 changes: 1 addition & 1 deletion src/menu/menu.cpp
Expand Up @@ -741,7 +741,7 @@ void M_Drawer (void)

if (CurrentMenu != nullptr && menuactive != MENU_Off)
{
if (!CurrentMenu->DontBlur) screen->BlurScene(0);
if (!CurrentMenu->DontBlur) screen->BlurScene(menuBlurAmount);
if (!CurrentMenu->DontDim)
{
if (sysCallbacks && sysCallbacks->MenuDim) sysCallbacks->MenuDim();
Expand Down

0 comments on commit 18f2cf0

Please sign in to comment.