mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 15:22:08 +00:00
- Fix 'Requested invalid render buffer sizes' when executing the reverbedit command from fullscreen
This commit is contained in:
parent
b25f191e85
commit
56477c8f89
1 changed files with 6 additions and 0 deletions
|
@ -49,6 +49,7 @@
|
||||||
#include "c_dispatch.h"
|
#include "c_dispatch.h"
|
||||||
#include "c_cvars.h"
|
#include "c_cvars.h"
|
||||||
#include "doomstat.h"
|
#include "doomstat.h"
|
||||||
|
#include "v_video.h"
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning(disable:4244)
|
#pragma warning(disable:4244)
|
||||||
|
@ -1384,6 +1385,8 @@ void ShowEAXEditor ()
|
||||||
EAXEditWindow = CreateDialog (g_hInst, MAKEINTRESOURCE(IDD_EAXEDIT), Window, EAXProc);
|
EAXEditWindow = CreateDialog (g_hInst, MAKEINTRESOURCE(IDD_EAXEDIT), Window, EAXProc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern int NewWidth, NewHeight, NewBits, DisplayBits;
|
||||||
|
|
||||||
CCMD (reverbedit)
|
CCMD (reverbedit)
|
||||||
{
|
{
|
||||||
if (EAXEditWindow != 0)
|
if (EAXEditWindow != 0)
|
||||||
|
@ -1395,6 +1398,9 @@ CCMD (reverbedit)
|
||||||
ForceWindowed = true;
|
ForceWindowed = true;
|
||||||
if (fullscreen)
|
if (fullscreen)
|
||||||
{
|
{
|
||||||
|
NewWidth = screen->VideoWidth;
|
||||||
|
NewHeight = screen->VideoHeight;
|
||||||
|
NewBits = DisplayBits;
|
||||||
setmodeneeded = true;
|
setmodeneeded = true;
|
||||||
SpawnEAXWindow = true;
|
SpawnEAXWindow = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue