1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-09 17:29:36 +00:00

Okay, treading water slightly, ensured window content is correct aspect ratio.

This commit is contained in:
Thomas Harte 2015-07-23 20:50:50 -04:00
parent 7276c77027
commit b9721d1d3f

View File

@ -18,8 +18,9 @@ class Atari2600Document: NSDocument, CSOpenGLViewDelegate, CSAtari2600Delegate {
@IBOutlet weak var openGLView: CSOpenGLView?
override func windowControllerDidLoadNib(aController: NSWindowController) {
super.windowControllerDidLoadNib(aController)
openGLView!.delegate = self
// Add any code here that needs to be executed once the windowController has loaded the document's window.
aController.window!.contentAspectRatio = NSSize(width: 4.0, height: 3.0)
}
override class func autosavesInPlace() -> Bool {