summaryrefslogtreecommitdiff
path: root/src/video/cocoa/cocoa_v.h
AgeCommit message (Collapse)Author
2021-03-09Add: Display refresh rate game option (#8813)sean
2021-03-08Add: Option to (dis-)allow accelerated video drivers. (#8819)Patric Stout
The video drivers using the OpenGL backend are currently our only accelerated drivers. The options defaults to off for macOS builds and to on everywhere else. Co-authored-by: Michael Lutz <michi@icosahedron.de>
2021-02-24Codechange: [OSX] GameLoop is really more like MainLoopPatric Stout
MainLoop() is used to bootstrap OSX, where later a callback is done to GameLoop() to execute OpenTTD. All other video drivers don't need that, so what is in GameLoop is in MainLoop for all other drivers. This is rather confusing. So, instead, name GameLoop MainLoopReal to be more in sync with the other drivers.
2021-02-24Codechange: [Video] make the prototype of PollEvent() the same for all driversPatric Stout
Additionally, call it from the draw-tick.
2021-02-22Codechange: [OSX] Add support for (un)locking the video buffer.Michael Lutz
2021-02-22Codechange: [OSX] Separate video driver into a base and a Quartz implementation.Michael Lutz
2021-02-20Codechange: [OSX] Only keep a total dirty rect for drawing.Michael Lutz
When drawing an 8bpp screen buffer, palette resolving was done for each dirty rectangle. In areas with high activity, this would mean a pixel might have been resolved multiple times. Also, if too many individual updates were queued, the whole screen would be refreshed, even if unnecessary. All other drivers only keep one overall dirty rect, so do it here as well.
2021-02-20Codechange: be consistent in what CheckPaletteAnim() does and when it is calledPatric Stout
Additionally, make sure this is a class method. Later commits will make use of this.
2021-02-20Codechange: be consistent in naming the paint function Paint()Patric Stout
Also move this function to be a class member. This to allow further deduplicating of code in a later commit.
2021-02-20Codechange: move all input-handling of video-drivers into InputLoopPatric Stout
2021-02-14Add: [OSX] Automatic zoom level suggestion for Cocoa video driver.Michael Lutz
2021-02-13Cleanup: [OSX] Improve some comments.Michael Lutz
2021-02-13Codechange: [OSX] Remove unused 'app active' flag.Michael Lutz
2021-02-13Cleanup: [OSX] Move event loop into video driver file.Michael Lutz
2021-02-13Codechange: [OSX] Move mouse event handling to our NSView.Michael Lutz
2021-02-13Codechange: [OSX] Move some things from video driver to our NSView.Michael Lutz
2021-02-13Codechange: [OSX] Split Window and back buffer creation in Cocoa video driver.Michael Lutz
2021-02-13Cleanup: [OSX] Doxygen comment style in video driver.Michael Lutz
2021-02-13Codechange: [OSX] Inline some functions that are used in only one place.Michael Lutz
2021-02-13Codechange: [OSX] Replace #define with modern code.Michael Lutz
2021-02-13Codechange: [OSX] Fold remaining Cocoa video subdriver into the main driver.Michael Lutz
2021-02-13Change: [OSX] Replace screen resolution list with suggested window sizes.Michael Lutz
We never change the real screen resolution on OSX. As such, offering a list of resolutions is pointless. Instead of that, offer the user a list of commonly used window sizes up to the current screen size.
2021-02-13Codechange: [OSX] There is only one subdriver left, remove virtual dispatch.Michael Lutz
2021-01-14Feature: Choose a sensible window size on a fresh OTTD config file. (#8536)Michael Lutz
2021-01-03Revert 4ce53cb8: [OSX] Delayed fullscreen switch is not needed anymore.Michael Lutz
The fix for #8067 solves the real issue, making this workaround unneeded.
2021-01-03Fix: [OSX] Quitting in fullscreen mode would loose the original window size.Michael Lutz
This replicates the behaviour on e.g. Windows, which saves the original window size.
2021-01-03Change: [OSX] Hide Dock and menu during fullscreen mode.Michael Lutz
2021-01-03Cleanup: [OSX] Remove cargo cult back-buffer alpha setting on show/hide and ↵Michael Lutz
instead simply initialise the buffer on allocation.
2021-01-03Change: [OSX] Compiling the Cocoa/Quartz video driver cannot be disabled ↵Michael Lutz
anymore.
2021-01-03Codechange: [OSX] Re-arrange the OSX video driver code by combining all ↵Michael Lutz
drawing code and moving the window/event handling to a different file. This is just a code move/rename, not a functionality change.
2020-05-21Codechange: Use std::string in the driver and blitter selection code.Michael Lutz
2020-04-12Remove: [OSX] Stuff that is pre-10.7 from the Cocoa/Quartz video driver.Michael Lutz
2020-04-12Remove: [OSX] Old fullscreen subdriver for pre 10.7 systems.Michael Lutz
Since the move to C++11, building for pre 10.7 is not possible with the native Apple tools. Also, due to bitrot, the file doesn't even compile anymore. While this could be fixed, it shows that this subdriver is basically never used anymore.
2020-04-12Remove: [OSX] QuickDraw video subdriver used for OSX versions up to 10.4.Michael Lutz
Since the C++11 move, getting OpenTTD to compile and run for anything below 10.7 basically requires building a custom compiler and libc++. Also, the QuickDraw subdriver crashes on more modern OSX version. While this is fixable, keeping the driver around is probably pointless.
2020-03-30Fix #7644: [Cocoa] Manually set colorspace to sRGBSebastian Pauka
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-16Change: [OSX] Recreate backing store if the colour profile of the screen (or ↵Michael Lutz
the screen) the game window is one changes. This will result in changing colours if moving OpenTTD from one screen to another, but should avoid performance problems if the window is moved.
2019-03-24Codechange: Use override specifer for overriding member declarationsHenry Wilson
This is a C++11 feature that allows the compiler to check that a virtual member declaration overrides a base-class member with the same signature. Also src/blitter/32bpp_anim_sse4.hpp +38 is no longer erroneously marked as virtual despite being a template.
2018-04-10Fix: [OSX] Remove some OSX compiler warnings on newer SDKs/compilers.Michael Lutz
2013-11-25(svn r26108) -Codechange: some coding style (whitespace)rubidium
2013-11-25(svn r26107) -Codechange/cleanup: remove some coding bloat and simplify the ↵rubidium
driver factory instatiations
2013-08-05(svn r25693) -Add: [OSX] Support the new IME functions introduced with 10.5.michi_cc
2013-08-05(svn r25688) -Codechange: [OSX] Make our view aware of text input by IMEs.michi_cc
2013-08-05(svn r25686) -Codechange: [OSX] Abandon IME input if the edit box lost the ↵michi_cc
focus.
2013-08-05(svn r25655) -Fix: [OSX] Mouse cursor wasn't displayed properly after ↵michi_cc
switching to fullscreen on 10.7+. (Based on patch by Maedhros)
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2011-12-08(svn r23446) -Codechange: move _cur_palette and it's related first/count ↵rubidium
dirty variables into a single structure
2011-10-04(svn r22999) -Codechange: Allow changing the blitter during the running game.michi_cc
2011-09-05(svn r22894) -Doc: Some sprinkles of doxygen for the cocoa video driverplanetmaker
2011-09-04(svn r22893) -Fix [FS#4744]: [OSX] Compilation on OSX 10.7 was broken (based ↵planetmaker
on patch by leecbaker) -Add: [OSX] Support for fullscreen mode when compiled against SDK 10.7. Otherwise fullscreen mode is disabled when OpenTTD is run on OSX Lion