Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[OSX] Replace all usages of APIs deprecated in 10.5/10.6 #1411

Closed
DorpsGek opened this issue Nov 7, 2007 · 11 comments
Closed

[OSX] Replace all usages of APIs deprecated in 10.5/10.6 #1411

DorpsGek opened this issue Nov 7, 2007 · 11 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Nov 7, 2007

egladil opened the ticket and wrote:

The OS X port is using APIs deprecated in the latest version of OS X (and possible earlier versions). Those should be replaced to newer versions of the API to make the game more future proof on this platform.

Reported version: trunk
Operating system: Mac OS X


This issue was imported from FlySpray: https://bugs.openttd.org/task/1411
@DorpsGek
Copy link
Member Author

Bjarni wrote:

r11498 breaks right click scrolling on intel macs (I remember something about blackis having endian problems with scrolling). Scrollwheel scrolling works.

Also all the deprecated warnings for quickdraw showed up again (minor issue I guess we just need the right ifdef).

Also speed tests will be needed as blackis patch was a real slowdown.


This comment was imported from FlySpray: https://bugs.openttd.org/task/1411#comment2784

@DorpsGek
Copy link
Member Author

egladil wrote:

Strange that it should break scrolling, since the event handling code isn't touched at all except for the mouse coordinate translation function, and that should effect more than just scrolling if it breaks.

The deprecated warnings would probably be better to handle by conditional compilation of the entire quickdraw subdriver. (If it's deprecated we shouldn't use it.)


This comment was imported from FlySpray: https://bugs.openttd.org/task/1411#comment2785

@DorpsGek
Copy link
Member Author

egladil wrote:

This should remove the deprecated warnings, and use the correct driver for the running os x version.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/1411#comment2789

@DorpsGek
Copy link
Member Author

DorpsGek commented Sep 8, 2009

Rubidium wrote:

Since MacOS 10.6(?) some cocoa functions have become deprecated, used by the full screen driver:

[SRC] Compiling video/cocoa/fullscreen.mm
/Users/ingo/ottd/trunk/src/video/cocoa/fullscreen.mm: In member function ‘virtual void FullscreenSubdriver::UpdatePalette(uint, uint)’:
/Users/ingo/ottd/trunk/src/video/cocoa/fullscreen.mm:518: warning: ‘CGTableCount’ is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h:459)

This task is a sub-task of FS 2782


This comment was imported from FlySpray: https://bugs.openttd.org/task/1411#comment6609

@DorpsGek
Copy link
Member Author

DorpsGek commented Sep 9, 2009

planetmaker wrote:

Actually that's more of a Quartz issue than a cocoa one. And yes, it's been deprecated in 10.6 (only).


This comment was imported from FlySpray: https://bugs.openttd.org/task/1411#comment6614

@DorpsGek
Copy link
Member Author

pyth wrote:

This patch removes the calls to CPS* process manager related stuff. These calls still work, but cause deprecation message in the console. The patched code should be good 10.3 - 10.6. The DEBUG line gives a compiler warning since DEBUG() does not know about the OSStatus type and casting it to (long int) doesn't work because of the # define. What would be the preferred way to solve this? Patch is only tested on 10.5...

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/1411#comment6762

@DorpsGek
Copy link
Member Author

pyth wrote:

Improved version, making openTTD the front process even if started from the command line.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/1411#comment6765

@DorpsGek
Copy link
Member Author

michi_cc wrote:

Seems to work as far as I can see.

Added to the other OSX patches at http://www.icosahedron.de/cgi-bin/gitweb.cgi?p=ottd_osx.git


This comment was imported from FlySpray: https://bugs.openttd.org/task/1411#comment6771

@DorpsGek
Copy link
Member Author

DorpsGek commented Oct 5, 2009

michi_cc wrote:

Removing the CPS* calls was implemented in r17712. CGTableCount vanished in r17717.
Some remaining deprecated string functions where removed in r17711.

Besides the obvious QuickDraw stuff (that should have proper version guards and not be reported),
there shouldn't be any deprecated warnings left. Please report here if something is still missing.


This comment was imported from FlySpray: https://bugs.openttd.org/task/1411#comment6787

@DorpsGek
Copy link
Member Author

planetmaker wrote:

I tested compilation on 10.6 for
with/out iconv
with/out freetype (link failure, see FS 3313)
with/out icu
with/out fontconfig
with/out png
with/out zlib
with/out cocoa (linking failure, see FS 3314)
with/out osx-sysroot
with/out network
with/out cocoa-quickdraw
with/out cocoa-quartz

and I didn't find any messages about the use of deprecated functions. From this POV, I think, this issue can be closed.


This comment was imported from FlySpray: https://bugs.openttd.org/task/1411#comment6947

@DorpsGek
Copy link
Member Author

michi_cc closed the ticket.

Reason for closing: Fixed

At least till 10.7 comes around.


This comment was imported from FlySpray: https://bugs.openttd.org/task/1411

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay
Projects
None yet
Development

No branches or pull requests

1 participant