Call RedrawSurface in OnRedrawDisplay of NodesViewerMode, SoundPropagationMode and SoundEnvironmentMode so that the map gets updated properly and not being stretched/squished when the windows is resized

This commit is contained in:
biwa 2019-12-30 11:28:08 +01:00
parent f6dd787f0d
commit 1e90500a3f
3 changed files with 7 additions and 3 deletions

View file

@ -995,7 +995,7 @@ namespace CodeImp.DoomBuilder.Plugins.NodesViewer
// Draw the display
public override void OnRedrawDisplay()
{
base.OnRedrawDisplay();
renderer.RedrawSurface();
if(form == null) return;

View file

@ -282,8 +282,10 @@ namespace CodeImp.DoomBuilder.SoundPropagationMode
{
if(BuilderPlug.Me.DataIsDirty) UpdateData();
renderer.RedrawSurface();
// Render lines and vertices
if(renderer.StartPlotter(true))
if (renderer.StartPlotter(true))
{
// Plot lines by hand, so that no coloring (line specials, 3D floors etc.) distracts from
// the sound environments. Also don't draw the line's normal. They are not needed here anyway

View file

@ -225,8 +225,10 @@ namespace CodeImp.DoomBuilder.SoundPropagationMode
List<SoundPropagationDomain> renderedspds = new List<SoundPropagationDomain>();
if(BuilderPlug.Me.DataIsDirty) UpdateData();
renderer.RedrawSurface();
// Render lines and vertices
if(renderer.StartPlotter(true))
if (renderer.StartPlotter(true))
{
// Plot lines by hand, so that no coloring (line specials, 3D floors etc.) distracts from