mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 06:45:31 +00:00
* GameWindow.cs: Improved implementation of GameWindow.Exit(). It should now be possible to cancel the exit through the IsClosing event.
This commit is contained in:
parent
e441e9d067
commit
4482a79e84
|
@ -261,7 +261,7 @@ namespace OpenTK
|
||||||
#region Exit
|
#region Exit
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gracefully exits the GameWindow. May be called from any thread.
|
/// Closes the GameWindow. Equivalent to <see cref="Close"/> method.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// <para>Override if you are not using <see cref="GameWindow.Run()"/>.</para>
|
/// <para>Override if you are not using <see cref="GameWindow.Run()"/>.</para>
|
||||||
|
@ -269,7 +269,6 @@ namespace OpenTK
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public virtual void Exit()
|
public virtual void Exit()
|
||||||
{
|
{
|
||||||
isExiting = true;
|
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue