mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 12:22:35 +00:00
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:
parent
f6dd787f0d
commit
1e90500a3f
3 changed files with 7 additions and 3 deletions
|
@ -995,7 +995,7 @@ namespace CodeImp.DoomBuilder.Plugins.NodesViewer
|
|||
// Draw the display
|
||||
public override void OnRedrawDisplay()
|
||||
{
|
||||
base.OnRedrawDisplay();
|
||||
renderer.RedrawSurface();
|
||||
|
||||
if(form == null) return;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue