Michael Lutz
37116a7575
Codechange: [OSX] Remove old code that has no effect on current OSX versions.
2021-06-22 21:09:37 +02:00
Michael Lutz
0d5d3083bd
Codechange: [OSX] Use more exact enum names where introduced with the 10.12 SDK.
...
The enum values still have the exact same numerical values, but the 10.12
SDK introduced more explicit names (e.g. like NSEventTypeApplicationDefined
instead of NSApplicationDefined) for several enum constants.
Use them when available.
2021-06-22 21:09:37 +02:00
rubidium42
55a11710a6
Codechange: convert printf DEBUG statements to fmt Debug statements
2021-06-13 12:45:45 +02:00
Michael Lutz
25656a10cb
Fix #8808 : [OSX, OpenGL] Crash on switching blitters due to double-mapping the video buffer.
2021-03-08 15:43:22 +01:00
Patric Stout
6a8c461e38
Codechange: [OSX] GameLoop is really more like MainLoop
...
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-24 21:58:47 +01:00
milek7
751f595bb6
Fix: VkMapping declarations violated C++ ODR rule.
2021-02-14 23:19:50 +01:00
Michael Lutz
f5555a6d26
Fix 9c872192: [OSX] Clear mouse button emulation flag.
2021-02-14 12:58:45 +01:00
Michael Lutz
e5c3253642
Add: [OSX] Setting to disable HiDPI graphics rendering.
2021-02-14 11:50:18 +01:00
Michael Lutz
0fc763bc55
Change: [OSX] Render screen in full native resolution on HiDPI displays.
2021-02-14 11:50:18 +01:00
Michael Lutz
acca56b6a5
Cleanup: [OSX] Improve some comments.
2021-02-13 22:21:17 +01:00
Michael Lutz
c78e559e88
Codechange: [OSX] Remove unused 'app active' flag.
2021-02-13 22:21:17 +01:00
Michael Lutz
9c8721922b
Fix: [OSX] An emulated right mouse down event has to be followed by right mouse up.
2021-02-13 22:21:17 +01:00
Michael Lutz
649ff5f9f9
Codechange: [OSX] Use relative mouse handling during scrolling.
2021-02-13 22:21:17 +01:00
Michael Lutz
063b90b97d
Codechange: [OSX] Move key event handling to our view.
2021-02-13 22:21:17 +01:00
Michael Lutz
f4bd54fedd
Codechange: [OSX] Move mouse event handling to our NSView.
2021-02-13 22:21:17 +01:00
Michael Lutz
bd42fc94cc
Codechange: [OSX] Move some things from video driver to our NSView.
2021-02-13 22:21:17 +01:00
Michael Lutz
965ce12947
Codechange: [OSX] Use newer mouse tracking API.
2021-02-13 22:21:17 +01:00
Michael Lutz
42af13c141
Codechange: [OSX] Split drawing into its own subview.
...
This allows the drawing backend code to be independent
of any event or command handling.
2021-02-13 22:21:17 +01:00
Michael Lutz
60f30036f1
Codechange: [OSX] Drain autoreleased objects in each game loop cycle.
2021-02-13 22:21:17 +01:00
Michael Lutz
8aaf4ea098
Codechange: [OSX] Split Window and back buffer creation in Cocoa video driver.
2021-02-13 22:21:17 +01:00
Michael Lutz
88f6c7a9f3
Codechange: [OSX] Fold remaining Cocoa video subdriver into the main driver.
2021-02-13 22:21:17 +01:00
Michael Lutz
4db7837d06
Codechange: [OSX] There is only one subdriver left, remove virtual dispatch.
2021-02-13 22:21:17 +01:00
Michael Lutz
4ce53cb851
Fix: [OSX] Quitting in fullscreen mode would loose the original window size.
...
This replicates the behaviour on e.g. Windows, which saves the original window size.
2021-01-03 21:20:28 +01:00
Michael Lutz
c860a247d3
Change: [OSX] Hide Dock and menu during fullscreen mode.
2021-01-03 21:20:28 +01:00
Michael Lutz
7bdaabf5f1
Cleanup: [OSX] Remove cargo cult back-buffer alpha setting on show/hide and instead simply initialise the buffer on allocation.
2021-01-03 13:25:32 +01:00
Michael Lutz
9ccef816f9
Codechange: [OSX] Re-arrange the OSX video driver code by combining all drawing code and moving the window/event handling to a different file.
...
This is just a code move/rename, not a functionality change.
2021-01-03 13:25:32 +01:00