From 56477c8f899aff610d4fae322a0a45922ecd738c Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sat, 25 Nov 2017 12:20:00 +0100 Subject: [PATCH] - Fix 'Requested invalid render buffer sizes' when executing the reverbedit command from fullscreen --- src/win32/eaxedit.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/win32/eaxedit.cpp b/src/win32/eaxedit.cpp index 509f95322b..a5a4b81168 100644 --- a/src/win32/eaxedit.cpp +++ b/src/win32/eaxedit.cpp @@ -49,6 +49,7 @@ #include "c_dispatch.h" #include "c_cvars.h" #include "doomstat.h" +#include "v_video.h" #ifdef _MSC_VER #pragma warning(disable:4244) @@ -1384,6 +1385,8 @@ void ShowEAXEditor () EAXEditWindow = CreateDialog (g_hInst, MAKEINTRESOURCE(IDD_EAXEDIT), Window, EAXProc); } +extern int NewWidth, NewHeight, NewBits, DisplayBits; + CCMD (reverbedit) { if (EAXEditWindow != 0) @@ -1395,6 +1398,9 @@ CCMD (reverbedit) ForceWindowed = true; if (fullscreen) { + NewWidth = screen->VideoWidth; + NewHeight = screen->VideoHeight; + NewBits = DisplayBits; setmodeneeded = true; SpawnEAXWindow = true; }