diff options
| author | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-11-10 20:22:50 +0000 |
|---|---|---|
| committer | SND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2014-11-10 20:22:50 +0000 |
| commit | a96ba176322566d9d15b51c714984affcdfc6355 (patch) | |
| tree | fe6496196975b981955a580d0a0442c235037749 /macosx/plugins/PeopsXgl/macsrc/PluginWindowController.m | |
| parent | 0f8e66e194b903763b6c580599eb47c11f154bdd (diff) | |
| download | pcsxr-a96ba176322566d9d15b51c714984affcdfc6355.tar.gz | |
OS X: make all ivars either be in the implementation block, or converted to Objective C 2.0 properties.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@92227 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/PeopsXgl/macsrc/PluginWindowController.m')
| -rwxr-xr-x | macosx/plugins/PeopsXgl/macsrc/PluginWindowController.m | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/macosx/plugins/PeopsXgl/macsrc/PluginWindowController.m b/macosx/plugins/PeopsXgl/macsrc/PluginWindowController.m index 8ef05168..2963b171 100755 --- a/macosx/plugins/PeopsXgl/macsrc/PluginWindowController.m +++ b/macosx/plugins/PeopsXgl/macsrc/PluginWindowController.m @@ -61,7 +61,9 @@ NSRect FitRectInRect(NSRect source, NSRect destination) } @implementation PluginWindowController - +{ + BOOL inFullscreen; +} + (id)openGameView { // create a window for the GPU and return @@ -168,7 +170,7 @@ NSRect FitRectInRect(NSRect source, NSRect destination) - (PluginGLView *)openGLView { - return (PluginGLView *)glView; + return (PluginGLView *)self.glView; } - (void) cureAllIlls @@ -184,7 +186,7 @@ NSRect FitRectInRect(NSRect source, NSRect destination) rRatioRect.right = iResX; rRatioRect.bottom = iResY; - [[glView openGLContext] makeCurrentContext]; + [[self.glView openGLContext] makeCurrentContext]; glFlush(); glFinish(); @@ -209,7 +211,7 @@ NSRect FitRectInRect(NSRect source, NSRect destination) [NSOpenGLContext clearCurrentContext]; - [glView reshape]; // to get rid of fuglies on screen + [self.glView reshape]; // to get rid of fuglies on screen // GLinitialize(); // blunt instrument method of setting a proper state. } @@ -313,7 +315,7 @@ NSRect FitRectInRect(NSRect source, NSRect destination) if (!(([sender resizeFlags] & NSShiftKeyMask) == NSShiftKeyMask)) { NSRect oldSize = [sender frame]; - NSRect viewSize = [glView frame]; + NSRect viewSize = [self.glView frame]; float xDiff = NSWidth(oldSize) - NSWidth(viewSize); float yDiff = NSHeight(oldSize) - NSHeight(viewSize); @@ -404,8 +406,8 @@ NSRect FitRectInRect(NSRect source, NSRect destination) roundf((aFrame.size.height - proportionalHeight)/2.0), roundf(proportionalWidth), roundf(proportionalHeight)); - [glView setFrame:fitToWindow]; - [glView reshape]; + [self.glView setFrame:fitToWindow]; + [self.glView reshape]; iResX = roundf(proportionalWidth); iResY = roundf(proportionalHeight); |
