summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-06-22 01:41:15 +0200
committerMichael Lutz <michi@icosahedron.de>2021-06-22 21:09:37 +0200
commit37116a7575c1dd96ae93c11ffbae64358d59d4aa (patch)
tree880f4af8181116ec1f468c4ce6a4994cc696ebb7 /src
parent883e21dbb743831c3e100043717909e5819174ce (diff)
downloadopenttd-37116a7575c1dd96ae93c11ffbae64358d59d4aa.tar.xz
Codechange: [OSX] Remove old code that has no effect on current OSX versions.
Diffstat (limited to 'src')
-rw-r--r--src/video/cocoa/cocoa_ogl.mm1
-rw-r--r--src/video/cocoa/cocoa_wnd.h1
-rw-r--r--src/video/cocoa/cocoa_wnd.mm17
3 files changed, 0 insertions, 19 deletions
diff --git a/src/video/cocoa/cocoa_ogl.mm b/src/video/cocoa/cocoa_ogl.mm
index 81222d2ab..af9839a1c 100644
--- a/src/video/cocoa/cocoa_ogl.mm
+++ b/src/video/cocoa/cocoa_ogl.mm
@@ -152,7 +152,6 @@ static bool _allowSoftware;
{
if (self = [ super initWithFrame:frameRect ]) {
/* We manage our content updates ourselves. */
- self.wantsBestResolutionOpenGLSurface = _allow_hidpi_window ? YES : NO;
self.layerContentsRedrawPolicy = NSViewLayerContentsRedrawOnSetNeedsDisplay;
/* Create backing layer. */
diff --git a/src/video/cocoa/cocoa_wnd.h b/src/video/cocoa/cocoa_wnd.h
index f8b9385ac..3ddd5a4f0 100644
--- a/src/video/cocoa/cocoa_wnd.h
+++ b/src/video/cocoa/cocoa_wnd.h
@@ -32,7 +32,6 @@ extern NSString *OTTDMainLaunchGameEngine;
@interface OTTD_CocoaWindow : NSWindow
- (instancetype)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)styleMask backing:(NSBackingStoreType)backingType defer:(BOOL)flag driver:(VideoDriver_Cocoa *)drv;
-- (void)display;
- (void)setFrame:(NSRect)frameRect display:(BOOL)flag;
@end
diff --git a/src/video/cocoa/cocoa_wnd.mm b/src/video/cocoa/cocoa_wnd.mm
index 1f470a948..05b55e2a8 100644
--- a/src/video/cocoa/cocoa_wnd.mm
+++ b/src/video/cocoa/cocoa_wnd.mm
@@ -406,23 +406,6 @@ void CocoaDialog(const char *title, const char *message, const char *buttonLabel
}
/**
- * This method fires just before the window deminaturizes from the Dock.
- * We'll save the current visible surface, let the window manager redraw any
- * UI elements, and restore the surface. This way, no expose event
- * is required, and the deminiaturize works perfectly.
- */
-- (void)display
-{
- /* save current visible surface */
- [ self cacheImageInRect:[ driver->cocoaview frame ] ];
-
- /* let the window manager redraw controls, border, etc */
- [ super display ];
-
- /* restore visible surface */
- [ self restoreCachedImage ];
-}
-/**
* Define the rectangle we draw our window in
*/
- (void)setFrame:(NSRect)frameRect display:(BOOL)flag