ProjectPSX/ProjectPSX.WinForms/UI/DoubleBufferedPanel.cs
Pedro Cortés 2f79a50d36
Gdi (#18)
* Push Interop

* GDI Render: UI

* Gdi: Add BltMode

* Winform GDI: Handle y ranges
This is badly handled and X still left
2021-01-24 12:16:01 +01:00

14 lines
377 B
C#

using System.Windows.Forms;
namespace ProjectPSX.Util {
public class DoubleBufferedPanel : Panel {
public DoubleBufferedPanel() {
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
SetStyle(ControlStyles.UserPaint, false);
UpdateStyles();
}
}
}