Commit Graph
37 Commits
Author SHA1 Message Date
Thierry Crozat 3fe0e3c38e OSYSTEM: Add API to copy text to clipboard
This has also been implemented for the SDL2 and macOS backends.
2018-04-29 21:47:10 +01:00
Thierry Crozat 3607b79d7d MACOSX: Remove mixer init from derived class for macosx backend
Since the macosx backend now does the same as the base SDL backend
we can just let the base class do its stuff.
2017-09-12 21:30:29 +01:00
Colin Snover bcbd443359 SDL: Stop using double buffering mixer on macOS
This mixer type was added in
943b4c2036 because "anything which
produces sampled data with high latency (like the MT-32 emulator)
will sound terribly", but as far as I can see (or reproduce), this
mixer doesn't do anything that would solve that problem, except
that it effectively doubles the size of the audio buffer so there's
less chance of an underflow due to slower-than-realtime synthesis
by the softsynth. But you don't need the overhead of a separate
thread to do that, you just need to increase the buffer size.
2017-09-12 11:35:51 -05:00
Colin Snover 2d3c86187f MACOSX: Fix flipped return value of openUrl 2017-05-21 19:37:14 -05:00
Thierry Crozat e96c057c3d SDL: Allow specifying the screenshot directory in the config file
There is no GUI option to set the screenshot directory, but this
allows power users to set it if they don't want to use the default.
2017-04-24 01:07:05 +01:00
Thierry Crozat 11dd33bb73 MACOSX: Create screenshot on Desktop
This is consistent with the OS shortcut (Crtl+Shift+3) to take a
screenshot.
2017-04-24 01:06:50 +01:00
Eugene Sandulenko 355c4fa646 JANITORIAL: Remove more trailing spaces 2016-10-09 15:02:02 +02:00
Thierry Crozat 1f2a50bcd3 CLOUD: Move openUrl to OSystem 2016-09-10 01:12:42 +01:00
Thierry Crozat f490fb811a OSX: Implement clipboard support
There was already an implementation using SDL2 in the SDL backend,
but this way we have it available also when using the SDL 1.
2016-08-30 21:37:34 +01:00
Matthew Hoops 47a82f2d1b BACKENDS: Add a custom Mac OS X CD audio manager
Since Mac OS X Carbon/Cocoa API isn't stable (in that it's changed multiple times over the years). Maintaining two versions of the same code (one in some foreign language with overly long names) isn't very appealing to me.
2016-03-13 13:53:55 +01:00
Matthew Hoops 5936f7c9d1 MACOSX: Fix compilation
Broken by 3f22c12
2015-03-05 08:02:54 -05:00
Johannes Schickel 3f22c12c56 SDL: Handle icon setup in SdlWindow. 2015-02-16 01:25:22 +01:00
Matthew Hoops 7af36e9724 BACKENDS: Fix invalid buffer size in CFStringGetCString call 2014-06-01 17:02:18 -04:00
Thierry Crozat 6d7fcdd2b5 OSX: Implement TaskbarManager for Mac OS X
This implements count badge, progress bar, and icon overlay.
It uses the NSDockTile API which is available since OS X 10.5.
The code compiles and run on older system but without doing
anything.
2014-02-23 21:54:47 +00:00
Johannes Schickel 63304ee9ec SDL: Make GPL headers consistent in themselves. 2014-02-18 02:39:38 +01:00
Thierry Crozat 67493394b3 OSX: Remove use of deprecated methods
FSRef and FSPathMakeRef have been deprecated in OS X 10.8. So we
use CFURLRef instead.
2012-11-18 01:29:09 +00:00
Johannes Schickel 89abab97e3 JANITORIAL: Remove trailing whitespaces.
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00
Thierry Crozat e3d7606188 MACOSX: Detect system preferred language when starting bundle
This reimplement getSystemLanguage() for MacOS X because
setlocale() only works if the application is started from the terminal.
Instead we use CFBundleCopyPreferredLocalizationsFromArray() which
requires the translations to be listed in the bundle plist file (this had
already been committed). This fixes bug #3394080.
2011-10-03 23:53:22 +01:00
Oystein Eftevaag 7e7e606919 MACOSX: Turned update support off by default, simplified and cleaned the pull request 2011-08-02 21:00:57 -04:00
CeRiAl 828f1884b4 MACOSX: Add Sparkle support 2011-07-19 21:33:01 +02:00
Matthew Hoops 5825ccc168 BACKENDS: Fix spelling of 'Mac OS X' 2011-07-13 09:47:03 -04:00
Matthew Hoops 554dda7008 BACKENDS: Fix compilation on case-sensitive Mac OS X 2011-07-13 09:43:16 -04:00
CeRiAl b00586df82 MACOSX: Add i18n support for Mac OSX application menu 2011-07-07 01:07:06 +02:00
Max Horn 88913c0139 ALL: Remove trailing whitespaces
This tries to make our code a bit more compliant with our code formatting
conventions. For future use, this is the command I used:
  git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-06-20 00:59:48 +02:00
Max Horn 6287426db0 MACOSX: Include ApplicationServices header
This should pacify buildbot. Somehow on my system, it does not need it, though.
2011-06-03 18:31:29 +02:00
Max Horn 59646053a3 MACOSX: Fix indention 2011-06-03 18:25:57 +02:00
Max Horn 279a5b4f32 BACKENDS: Add OSystem::displayLogFile interface + OSX implementation 2011-06-03 13:36:04 +02:00
strangerke 69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Max Horn df05ed1a46 BACKENDS: Include scummsys.h at top of all .cpp files, *before* any #ifdefs
svn-id: r54573
2010-11-29 16:18:43 +00:00
Max Horn 7760077cf5 Merging the gsoc2010-opengl branch
svn-id: r54518
2010-11-28 14:56:31 +00:00
Matthew Hoops cd5546f1d1 Override setupIcon() for both Mac OS X and SymbianOS, they have their own icons.
svn-id: r50476
2010-06-29 01:59:10 +00:00
Alejandro Marzini 494755cc36 Renamed BufferingSDLMixerManager to DoubleBufferSDLMixerManager.
svn-id: r50458
2010-06-28 20:41:08 +00:00
Alejandro Marzini 936f558579 Improved getDefaultConfigFileName(). Code cleanup.
svn-id: r50364
2010-06-27 05:12:37 +00:00
Alejandro Marzini 70e9a5b951 Removed DEFAULT_CONFIG_FILE define in favor of new getConfigFileNameString function.
svn-id: r50301
2010-06-26 03:44:47 +00:00
Matthew Hoops a8120dd9d6 Fix compile on Mac OS X (and probably *nix systems).
svn-id: r50254
2010-06-24 23:51:02 +00:00
Alejandro Marzini de2b74e15a Added missing header.
svn-id: r50253
2010-06-24 23:41:27 +00:00
Alejandro Marzini 419e05bb89 Created macosx port from sdl backend.
svn-id: r50228
2010-06-24 19:05:59 +00:00