mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 06:55:38 +00:00
Minor cleanups (regions, tabs). Started getting the WinForms related things out of this class.
This commit is contained in:
parent
4a290c7182
commit
2dc06f2d66
|
@ -4,6 +4,8 @@
|
||||||
*/
|
*/
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region --- Using Directives ---
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
@ -11,9 +13,11 @@ using System.Runtime.InteropServices;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
using OpenTK.OpenGL;
|
//using OpenTK.OpenGL;
|
||||||
using OpenTK.Platform.Windows;
|
using OpenTK.Platform.Windows;
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
namespace OpenTK.OpenGL.Platform
|
namespace OpenTK.OpenGL.Platform
|
||||||
{
|
{
|
||||||
public class WindowsContext : GLContext
|
public class WindowsContext : GLContext
|
||||||
|
@ -98,14 +102,11 @@ namespace OpenTK.OpenGL.Platform
|
||||||
|
|
||||||
MakeCurrent();
|
MakeCurrent();
|
||||||
|
|
||||||
c.TopLevelControl.Move += new EventHandler(c_Move);
|
//c.TopLevelControl.Move += new EventHandler(c_Move);
|
||||||
c.Move += new EventHandler(c_Move);
|
//c.Move += new EventHandler(c_Move);
|
||||||
c.Resize += new EventHandler(c_Resize);
|
//c.Resize += new EventHandler(c_Resize);
|
||||||
//GL.Init();
|
|
||||||
//new GL();
|
|
||||||
|
|
||||||
//if (load_extensions)
|
//GL.ReloadFunctions();
|
||||||
// LoadExtensions();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void c_Resize(object sender, EventArgs e)
|
void c_Resize(object sender, EventArgs e)
|
||||||
|
@ -233,7 +234,7 @@ namespace OpenTK.OpenGL.Platform
|
||||||
currentMode.PelsHeight,
|
currentMode.PelsHeight,
|
||||||
currentMode.BitsPerPel,
|
currentMode.BitsPerPel,
|
||||||
currentMode.DisplayFrequency
|
currentMode.DisplayFrequency
|
||||||
);
|
);
|
||||||
|
|
||||||
modes.Add(mode);
|
modes.Add(mode);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue