Skip to content

Commit

Permalink
Replace Refresh with Invalidate in DrawPanelPaint
Browse files Browse the repository at this point in the history
Modified DrawPanelPaint to use _DrawPanel.Invalidate() instead of _DrawPanel.Refresh(). This change aims to improve the repainting process by invalidating the panel, which sends a paint message to the panel rather than immediately refreshing it.
  • Loading branch information
majorsilence committed Feb 8, 2025
1 parent 93b1867 commit 5e5128d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RdlDesign/DesignCtl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ private async void DrawPanelPaint(object sender, System.Windows.Forms.PaintEvent
await Internal_DrawPanelPaint();
doGraphicsDraw = true;
// HACK: async shenanigans, force a repaint where e.Graphics is still valid
_DrawPanel.Refresh();
_DrawPanel.Invalidate();
}
}

Expand Down

0 comments on commit 5e5128d

Please sign in to comment.