mirror of
https://github.com/Nabile-Rahmani/DotN64.git
synced 2025-04-02 10:42:09 -04:00
- Blitting the frame buffer works for 240p and 480p, though due to the usage of the scale-up values, some lines don't make it through in 480p. Additionally, something is wrong with 16-bit buffers. - Running the window thread on the main thread since the main thread created the window. Windows isn't able to poll SDL events on a different thread. - Disposing the SDL window on the thread which created it instead of relying on the finaliser to destroy it. Not doing so triggers a segfault as DestroyRenderer gets called. No need to destroy textures when disposing of the renderer as it does it. - Display string for Point struct.
21 lines
387 B
C#
21 lines
387 B
C#
namespace DotN64.Desktop
|
|
{
|
|
internal struct Point
|
|
{
|
|
#region Fields
|
|
public int X, Y;
|
|
#endregion
|
|
|
|
#region Constructors
|
|
public Point(int x, int y)
|
|
{
|
|
X = x;
|
|
Y = y;
|
|
}
|
|
#endregion
|
|
|
|
#region Methods
|
|
public override string ToString() => $"X: {X}, Y: {Y}";
|
|
#endregion
|
|
}
|
|
}
|