mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-25 16:31:42 +00:00
Okay, treading water slightly, ensured window content is correct aspect ratio.
This commit is contained in:
parent
7276c77027
commit
b9721d1d3f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user