Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
Stella
Commits
933c4d7d
Commit
933c4d7d
authored
Dec 19, 2018
by
Stephen Anthony
Browse files
Mac-related files/folders are now using 'macOS' naming scheme.
parent
6a17467e
Changes
48
Hide whitespace changes
Inline
Side-by-side
Announce.txt
View file @
933c4d7d
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
SSSS ttt eeeee llll llll aaaaa
SSSS ttt eeeee llll llll aaaaa
===========================================================================
===========================================================================
Release 6.0 for Linux,
M
acOS
X
and Windows
Release 6.0 for Linux,
m
acOS and Windows
===========================================================================
===========================================================================
The Atari 2600 Video Computer System (VCS), introduced in 1977, was the
The Atari 2600 Video Computer System (VCS), introduced in 1977, was the
...
@@ -21,7 +21,7 @@ all of your favourite Atari 2600 games again! Stella was originally
...
@@ -21,7 +21,7 @@ all of your favourite Atari 2600 games again! Stella was originally
developed for Linux by Bradford W. Mott, however, it has been ported to a
developed for Linux by Bradford W. Mott, however, it has been ported to a
number of other platforms and is currently maintained by Stephen Anthony.
number of other platforms and is currently maintained by Stephen Anthony.
This is the 6.0 release of Stella for Linux,
M
ac
OS
X
and Windows. The
This is the 6.0 release of Stella for Linux,
m
acOS and Windows. The
distributions currently available are:
distributions currently available are:
* Binaries for Windows XP_SP3(*)/Vista/7/8/10 :
* Binaries for Windows XP_SP3(*)/Vista/7/8/10 :
...
@@ -32,8 +32,8 @@ distributions currently available are:
...
@@ -32,8 +32,8 @@ distributions currently available are:
(*) Note: Support for Windows XP is problematic on some systems,
(*) Note: Support for Windows XP is problematic on some systems,
and will probably be discontinued in a future release.
and will probably be discontinued in a future release.
* Binary distribution for
M
acOS
X
10.7 and above :
* Binary distribution for
m
acOS 10.7 and above :
Stella-6.0-macos
x
.dmg (64-bit Intel)
Stella-6.0-macos.dmg (64-bit Intel)
* Binary distribution in 32-bit & 64-bit Ubuntu DEB format :
* Binary distribution in 32-bit & 64-bit Ubuntu DEB format :
stella_6.0-1_i386.deb
stella_6.0-1_i386.deb
...
...
Changes.txt
View file @
933c4d7d
...
@@ -131,6 +131,9 @@
...
@@ -131,6 +131,9 @@
* The UNIX builds now use the system-installed PNG and ZLIB libraries
* The UNIX builds now use the system-installed PNG and ZLIB libraries
by default.
by default.
* The Macintosh builds are now named 'macOS' throughout the codebase to
reflect the new naming from Apple.
* For better compatibility, the Windows 32-bit version does not require
* For better compatibility, the Windows 32-bit version does not require
SSE2 anymore.
SSE2 anymore.
...
...
configure
View file @
933c4d7d
...
@@ -716,7 +716,7 @@ case $_host_os in
...
@@ -716,7 +716,7 @@ case $_host_os in
INCLUDES
=
"
$INCLUDES
-I
$SRC
/unix"
INCLUDES
=
"
$INCLUDES
-I
$SRC
/unix"
;;
;;
darwin
)
darwin
)
DEFINES
=
"
$DEFINES
-DBSPF_UNIX -DOS
X
_KEYS"
DEFINES
=
"
$DEFINES
-DBSPF_UNIX -D
MAC
OS_KEYS"
MODULES
=
"
$MODULES
$SRC
/unix"
MODULES
=
"
$MODULES
$SRC
/unix"
INCLUDES
=
"
$INCLUDES
-I
$SRC
/unix"
INCLUDES
=
"
$INCLUDES
-I
$SRC
/unix"
;;
;;
...
@@ -823,7 +823,7 @@ rm -f stella-conf*
...
@@ -823,7 +823,7 @@ rm -f stella-conf*
if
test
"
$_host_os
"
=
darwin
;
then
if
test
"
$_host_os
"
=
darwin
;
then
cat
<<
EOI
cat
<<
EOI
WARNING: plain UNIX-style builds on OS
X
without XCode have degraded functionality
WARNING: plain UNIX-style builds on
mac
OS without XCode have degraded functionality
and are unsupported. Continue on your own risk...
and are unsupported. Continue on your own risk...
EOI
EOI
fi
fi
docs/index.html
View file @
933c4d7d
...
@@ -358,7 +358,7 @@
...
@@ -358,7 +358,7 @@
<p>
The Mac version of Stella is designed to work on an Apple Macintosh with
<p>
The Mac version of Stella is designed to work on an Apple Macintosh with
the following:
</p>
the following:
</p>
<ul>
<ul>
<li>
M
acOS
X
10.7
(Lion)
or above
</li>
<li>
m
acOS 10.7 or above
</li>
<li>
64-bit Intel processor
</li>
<li>
64-bit Intel processor
</li>
<li>
OpenGL capable video card
</li>
<li>
OpenGL capable video card
</li>
<li>
Xcode 8.0 is required to compile the Stella source code
</li>
<li>
Xcode 8.0 is required to compile the Stella source code
</li>
...
@@ -382,7 +382,7 @@
...
@@ -382,7 +382,7 @@
<h3><b><u>
Other
</u></b></h3>
<h3><b><u>
Other
</u></b></h3>
<p>
Stella is extremely portable, and in its lifetime has been ported to almost every
<p>
Stella is extremely portable, and in its lifetime has been ported to almost every
platform where the SDL library exists. It is 32/64-bit and endian clean in Linux/Unix,
M
acOS
X
platform where the SDL library exists. It is 32/64-bit and endian clean in Linux/Unix,
m
acOS
and Windows. The Stella Team is interested in hearing about any problems you may
and Windows. The Stella Team is interested in hearing about any problems you may
encounter with diverse operating systems and CPU types.
</p>
encounter with diverse operating systems and CPU types.
</p>
</blockquote>
</blockquote>
...
@@ -423,7 +423,7 @@
...
@@ -423,7 +423,7 @@
<p>
<p>
<h3><b><u>
Macintosh
</u></b></h3>
<h3><b><u>
Macintosh
</u></b></h3>
<ul>
<ul>
<li><b>
Binary DMG file
</b>
(Stella-
<i>
release
</i>
-macos
x
.dmg)
<li><b>
Binary DMG file
</b>
(Stella-
<i>
release
</i>
-macos.dmg)
<ul>
<ul>
<li>
Double-click the disk image, open the 'Stella' folder, then copy the
<li>
Double-click the disk image, open the 'Stella' folder, then copy the
<b>
Stella.app
</b>
package to your 'Applications' folder.
</li>
<b>
Stella.app
</b>
package to your 'Applications' folder.
</li>
...
@@ -632,7 +632,7 @@
...
@@ -632,7 +632,7 @@
<tr>
<tr>
<th>
Function
</th>
<th>
Function
</th>
<th>
Key (Standard)
</th>
<th>
Key (Standard)
</th>
<th>
Key (
M
acOS
X
)
</th>
<th>
Key (
m
acOS)
</th>
</tr>
</tr>
<tr>
<tr>
...
@@ -1262,7 +1262,7 @@
...
@@ -1262,7 +1262,7 @@
<tr>
<tr>
<th>
Function
</th>
<th>
Function
</th>
<th>
Key (Standard)
</th>
<th>
Key (Standard)
</th>
<th>
Key (
M
acOS
X
)
</th>
<th>
Key (
m
acOS)
</th>
</tr>
</tr>
<tr>
<tr>
<td>
Disable TV effects
</td>
<td>
Disable TV effects
</td>
...
@@ -1347,7 +1347,7 @@
...
@@ -1347,7 +1347,7 @@
<tr>
<tr>
<th>
Function
</th>
<th>
Function
</th>
<th>
Key (Standard)
</th>
<th>
Key (Standard)
</th>
<th>
Key (
M
acOS
X
)
</th>
<th>
Key (
m
acOS)
</th>
</tr>
</tr>
<tr>
<tr>
...
@@ -1483,7 +1483,7 @@
...
@@ -1483,7 +1483,7 @@
<tr>
<tr>
<th>
Function
</th>
<th>
Function
</th>
<th>
Key (Standard)
</th>
<th>
Key (Standard)
</th>
<th>
Key (
M
acOS
X
)
</th>
<th>
Key (
m
acOS)
</th>
</tr>
</tr>
<tr>
<tr>
...
@@ -3072,8 +3072,8 @@
...
@@ -3072,8 +3072,8 @@
<p>
Note that you must use the entire name of the port as specified by
<p>
Note that you must use the entire name of the port as specified by
your operating system. For example, in Windows this would be COM1,
your operating system. For example, in Windows this would be COM1,
COM2, etc.; Linux and
M
acOS
X
tend to use names similar to '/dev/xxxxxx'.
COM2, etc.; Linux and
m
acOS tend to use names similar to '/dev/xxxxxx'.
For now, only Linux/UNIX,
M
acOS
X
, and Windows are supported.
</p>
For now, only Linux/UNIX,
m
acOS, and Windows are supported.
</p>
<p>
Support for the EEPROM portion of the AtariVox and SaveKey is currently
<p>
Support for the EEPROM portion of the AtariVox and SaveKey is currently
emulated. That is, a file will be created on your computer simulating the
emulated. That is, a file will be created on your computer simulating the
...
...
src/common/FSNodeFactory.hxx
View file @
933c4d7d
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#define FSNODE_FACTORY_HXX
#define FSNODE_FACTORY_HXX
class
AbstractFSNode
;
class
AbstractFSNode
;
#if defined(BSPF_UNIX) || defined(BSPF_MAC
_
OS
X
)
#if defined(BSPF_UNIX) || defined(BSPF_MACOS)
#include "FSNodePOSIX.hxx"
#include "FSNodePOSIX.hxx"
#elif defined(BSPF_WINDOWS)
#elif defined(BSPF_WINDOWS)
#include "FSNodeWINDOWS.hxx"
#include "FSNodeWINDOWS.hxx"
...
@@ -45,7 +45,7 @@ class FilesystemNodeFactory
...
@@ -45,7 +45,7 @@ class FilesystemNodeFactory
switch
(
type
)
switch
(
type
)
{
{
case
SYSTEM
:
case
SYSTEM
:
#if defined(BSPF_UNIX) || defined(BSPF_MAC
_
OS
X
)
#if defined(BSPF_UNIX) || defined(BSPF_MACOS)
return
make_unique
<
FilesystemNodePOSIX
>
(
path
);
return
make_unique
<
FilesystemNodePOSIX
>
(
path
);
#elif defined(BSPF_WINDOWS)
#elif defined(BSPF_WINDOWS)
return
make_unique
<
FilesystemNodeWINDOWS
>
(
path
);
return
make_unique
<
FilesystemNodeWINDOWS
>
(
path
);
...
...
src/common/FrameBufferSDL2.cxx
View file @
933c4d7d
...
@@ -189,12 +189,12 @@ bool FrameBufferSDL2::setVideoMode(const string& title, const VideoMode& mode)
...
@@ -189,12 +189,12 @@ bool FrameBufferSDL2::setVideoMode(const string& title, const VideoMode& mode)
:
SDL_WINDOWPOS_UNDEFINED_DISPLAY
(
displayIndex
);
:
SDL_WINDOWPOS_UNDEFINED_DISPLAY
(
displayIndex
);
uInt32
flags
=
mode
.
fsIndex
!=
-
1
?
SDL_WINDOW_FULLSCREEN_DESKTOP
:
0
;
uInt32
flags
=
mode
.
fsIndex
!=
-
1
?
SDL_WINDOW_FULLSCREEN_DESKTOP
:
0
;
// OS
X
seems to have issues with destroying the window, and wants to
keep
//
mac
OS seems to have issues with destroying the window, and wants to
// the same handle
//
keep
the same handle
// Problem is, doing so on other platforms results in flickering when
// Problem is, doing so on other platforms results in flickering when
// toggling fullscreen windowed mode
// toggling fullscreen windowed mode
// So we have a special case for OS
X
// So we have a special case for
mac
OS
#ifndef BSPF_MAC
_
OS
X
#ifndef BSPF_MACOS
// Don't re-create the window if its size hasn't changed, as it's not
// Don't re-create the window if its size hasn't changed, as it's not
// necessary, and causes flashing in fullscreen mode
// necessary, and causes flashing in fullscreen mode
if
(
myWindow
)
if
(
myWindow
)
...
@@ -213,7 +213,7 @@ bool FrameBufferSDL2::setVideoMode(const string& title, const VideoMode& mode)
...
@@ -213,7 +213,7 @@ bool FrameBufferSDL2::setVideoMode(const string& title, const VideoMode& mode)
SDL_SetWindowTitle
(
myWindow
,
title
.
c_str
());
SDL_SetWindowTitle
(
myWindow
,
title
.
c_str
());
}
}
#else
#else
// OS
X
wants to *never* re-create the window
//
mac
OS wants to *never* re-create the window
// This sometimes results in the window being resized *after* it's displayed,
// This sometimes results in the window being resized *after* it's displayed,
// but at least the code works and doesn't crash
// but at least the code works and doesn't crash
if
(
myWindow
)
if
(
myWindow
)
...
@@ -346,7 +346,7 @@ void FrameBufferSDL2::setWindowIcon()
...
@@ -346,7 +346,7 @@ void FrameBufferSDL2::setWindowIcon()
{
{
ASSERT_MAIN_THREAD
;
ASSERT_MAIN_THREAD
;
#ifndef BSPF_MAC
_
OS
X
// Currently not needed for OS
X
#ifndef BSPF_MACOS
// Currently not needed for
mac
OS
#include "stella_icon.hxx" // The Stella icon
#include "stella_icon.hxx" // The Stella icon
SDL_Surface
*
surface
=
SDL_CreateRGBSurfaceFrom
(
stella_icon
,
32
,
32
,
32
,
SDL_Surface
*
surface
=
SDL_CreateRGBSurfaceFrom
(
stella_icon
,
32
,
32
,
32
,
...
...
src/common/MediaFactory.hxx
View file @
933c4d7d
...
@@ -32,10 +32,10 @@
...
@@ -32,10 +32,10 @@
#include "SerialPortWINDOWS.hxx"
#include "SerialPortWINDOWS.hxx"
#include "SettingsWINDOWS.hxx"
#include "SettingsWINDOWS.hxx"
#include "OSystemWINDOWS.hxx"
#include "OSystemWINDOWS.hxx"
#elif defined(BSPF_MAC
_
OS
X
)
#elif defined(BSPF_MACOS)
#include "SerialPortMACOS
X
.hxx"
#include "SerialPortMACOS.hxx"
#include "SettingsMACOS
X
.hxx"
#include "SettingsMACOS.hxx"
#include "OSystemMACOS
X
.hxx"
#include "OSystemMACOS.hxx"
extern
"C"
{
extern
"C"
{
int
stellaMain
(
int
argc
,
char
*
argv
[]);
int
stellaMain
(
int
argc
,
char
*
argv
[]);
}
}
...
@@ -73,8 +73,8 @@ class MediaFactory
...
@@ -73,8 +73,8 @@ class MediaFactory
return
make_unique
<
OSystemUNIX
>
();
return
make_unique
<
OSystemUNIX
>
();
#elif defined(BSPF_WINDOWS)
#elif defined(BSPF_WINDOWS)
return
make_unique
<
OSystemWINDOWS
>
();
return
make_unique
<
OSystemWINDOWS
>
();
#elif defined(BSPF_MAC
_
OS
X
)
#elif defined(BSPF_MACOS)
return
make_unique
<
OSystemMACOS
X
>
();
return
make_unique
<
OSystemMACOS
>
();
#else
#else
#error Unsupported platform for OSystem!
#error Unsupported platform for OSystem!
#endif
#endif
...
@@ -86,8 +86,8 @@ class MediaFactory
...
@@ -86,8 +86,8 @@ class MediaFactory
return
make_unique
<
SettingsUNIX
>
(
osystem
);
return
make_unique
<
SettingsUNIX
>
(
osystem
);
#elif defined(BSPF_WINDOWS)
#elif defined(BSPF_WINDOWS)
return
make_unique
<
SettingsWINDOWS
>
(
osystem
);
return
make_unique
<
SettingsWINDOWS
>
(
osystem
);
#elif defined(BSPF_MAC
_
OS
X
)
#elif defined(BSPF_MACOS)
return
make_unique
<
SettingsMACOS
X
>
(
osystem
);
return
make_unique
<
SettingsMACOS
>
(
osystem
);
#else
#else
#error Unsupported platform for Settings!
#error Unsupported platform for Settings!
#endif
#endif
...
@@ -99,8 +99,8 @@ class MediaFactory
...
@@ -99,8 +99,8 @@ class MediaFactory
return
make_unique
<
SerialPortUNIX
>
();
return
make_unique
<
SerialPortUNIX
>
();
#elif defined(BSPF_WINDOWS)
#elif defined(BSPF_WINDOWS)
return
make_unique
<
SerialPortWINDOWS
>
();
return
make_unique
<
SerialPortWINDOWS
>
();
#elif defined(BSPF_MAC
_
OS
X
)
#elif defined(BSPF_MACOS)
return
make_unique
<
SerialPortMACOS
X
>
();
return
make_unique
<
SerialPortMACOS
>
();
#else
#else
return
make_unique
<
SerialPort
>
();
return
make_unique
<
SerialPort
>
();
#endif
#endif
...
...
src/common/PKeyboardHandler.cxx
View file @
933c4d7d
...
@@ -259,7 +259,7 @@ void PhysicalKeyboardHandler::handleEvent(StellaKey key, StellaMod mod, bool sta
...
@@ -259,7 +259,7 @@ void PhysicalKeyboardHandler::handleEvent(StellaKey key, StellaMod mod, bool sta
// Control or Alt/Cmd combos first
// Control or Alt/Cmd combos first
if
(
StellaModTest
::
isAlt
(
mod
)
&&
state
)
if
(
StellaModTest
::
isAlt
(
mod
)
&&
state
)
{
{
#ifdef BSPF_MAC
_
OS
X
#ifdef BSPF_MACOS
// These keys work in all states
// These keys work in all states
if
(
key
==
KBDK_Q
)
if
(
key
==
KBDK_Q
)
{
{
...
...
src/common/StellaKeys.hxx
View file @
933c4d7d
...
@@ -417,7 +417,7 @@ namespace StellaModTest
...
@@ -417,7 +417,7 @@ namespace StellaModTest
{
{
inline
bool
isAlt
(
int
mod
)
inline
bool
isAlt
(
int
mod
)
{
{
#if defined(BSPF_MAC
_
OS
X
) || defined(OS
X
_KEYS)
#if defined(BSPF_MACOS) || defined(
MAC
OS_KEYS)
return
(
mod
&
KBDM_GUI
);
return
(
mod
&
KBDM_GUI
);
#else
#else
return
(
mod
&
KBDM_ALT
);
return
(
mod
&
KBDM_ALT
);
...
...
src/common/bspf.hxx
View file @
933c4d7d
...
@@ -90,7 +90,7 @@ static const string EmptyString("");
...
@@ -90,7 +90,7 @@ static const string EmptyString("");
namespace
BSPF
namespace
BSPF
{
{
// Defines to help with path handling
// Defines to help with path handling
#if defined(BSPF_UNIX) || defined(BSPF_MAC
_
OS
X
)
#if defined(BSPF_UNIX) || defined(BSPF_MACOS)
static
const
string
PATH_SEPARATOR
=
"/"
;
static
const
string
PATH_SEPARATOR
=
"/"
;
#define ATTRIBUTE_FMT_PRINTF __attribute__((__format__ (__printf__, 2, 0)))
#define ATTRIBUTE_FMT_PRINTF __attribute__((__format__ (__printf__, 2, 0)))
#elif defined(BSPF_WINDOWS)
#elif defined(BSPF_WINDOWS)
...
...
src/common/main.cxx
View file @
933c4d7d
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#if defined(BSPF_MAC
_
OS
X
)
#if defined(BSPF_MACOS)
int
stellaMain
(
int
argc
,
char
*
argv
[])
int
stellaMain
(
int
argc
,
char
*
argv
[])
#else
#else
int
main
(
int
argc
,
char
*
argv
[])
int
main
(
int
argc
,
char
*
argv
[])
...
...
src/emucore/EventHandler.cxx
View file @
933c4d7d
...
@@ -700,7 +700,7 @@ void EventHandler::setActionMappings(EventMode mode)
...
@@ -700,7 +700,7 @@ void EventHandler::setActionMappings(EventMode mode)
// There are some keys which are hardcoded. These should be represented too.
// There are some keys which are hardcoded. These should be represented too.
string
prepend
=
""
;
string
prepend
=
""
;
if
(
event
==
Event
::
Quit
)
if
(
event
==
Event
::
Quit
)
#ifndef BSPF_MAC
_
OS
X
#ifndef BSPF_MACOS
prepend
=
"Ctrl Q"
;
prepend
=
"Ctrl Q"
;
#else
#else
prepend
=
"Cmd Q"
;
prepend
=
"Cmd Q"
;
...
...
src/emucore/Serializer.cxx
View file @
933c4d7d
...
@@ -67,7 +67,7 @@ Serializer::Serializer()
...
@@ -67,7 +67,7 @@ Serializer::Serializer()
{
{
myStream
=
make_unique
<
stringstream
>
(
ios
::
in
|
ios
::
out
|
ios
::
binary
);
myStream
=
make_unique
<
stringstream
>
(
ios
::
in
|
ios
::
out
|
ios
::
binary
);
// For some reason, Windows and possibly OS
X
needs to store something in
// For some reason, Windows and possibly
mac
OS needs to store something in
// the stream before it is used for the first time
// the stream before it is used for the first time
if
(
myStream
)
if
(
myStream
)
{
{
...
...
src/gui/AboutDialog.cxx
View file @
933c4d7d
...
@@ -118,7 +118,7 @@ void AboutDialog::updateStrings(int page, int lines, string& title)
...
@@ -118,7 +118,7 @@ void AboutDialog::updateStrings(int page, int lines, string& title)
title
=
"The Stella Team"
;
title
=
"The Stella Team"
;
ADD_ATEXT
(
"
\\
L
\\
c0""Stephen Anthony"
);
ADD_ATEXT
(
"
\\
L
\\
c0""Stephen Anthony"
);
ADD_ATEXT
(
"
\\
L
\\
c2"" Lead developer, current maintainer for the"
);
ADD_ATEXT
(
"
\\
L
\\
c2"" Lead developer, current maintainer for the"
);
ADD_ATEXT
(
"
\\
L
\\
c2"" Linux
/
OS
X
and Windows ports "
);
ADD_ATEXT
(
"
\\
L
\\
c2"" Linux
, mac
OS and Windows ports "
);
ADD_ATEXT
(
"
\\
L
\\
c0""Christian Speckner"
);
ADD_ATEXT
(
"
\\
L
\\
c0""Christian Speckner"
);
ADD_ATEXT
(
"
\\
L
\\
c2"" Emulation core development, TIA core"
);
ADD_ATEXT
(
"
\\
L
\\
c2"" Emulation core development, TIA core"
);
ADD_ATEXT
(
"
\\
L
\\
c0""Eckhard Stolberg"
);
ADD_ATEXT
(
"
\\
L
\\
c0""Eckhard Stolberg"
);
...
...
src/gui/BrowserDialog.cxx
View file @
933c4d7d
...
@@ -82,7 +82,7 @@ BrowserDialog::BrowserDialog(GuiObject* boss, const GUI::Font& font,
...
@@ -82,7 +82,7 @@ BrowserDialog::BrowserDialog(GuiObject* boss, const GUI::Font& font,
buttonWidth
,
buttonHeight
,
"Base Dir"
,
kBaseDirCmd
);
buttonWidth
,
buttonHeight
,
"Base Dir"
,
kBaseDirCmd
);
addFocusWidget
(
_basedirButton
);
addFocusWidget
(
_basedirButton
);
#ifndef BSPF_MAC
_
OS
X
#ifndef BSPF_MACOS
b
=
new
ButtonWidget
(
this
,
font
,
_w
-
2
*
(
buttonWidth
+
7
),
_h
-
buttonHeight
-
10
,
b
=
new
ButtonWidget
(
this
,
font
,
_w
-
2
*
(
buttonWidth
+
7
),
_h
-
buttonHeight
-
10
,
buttonWidth
,
buttonHeight
,
"Choose"
,
kChooseCmd
);
buttonWidth
,
buttonHeight
,
"Choose"
,
kChooseCmd
);
addFocusWidget
(
b
);
addFocusWidget
(
b
);
...
...
src/gui/Dialog.cxx
View file @
933c4d7d
...
@@ -727,7 +727,7 @@ void Dialog::addOKCancelBGroup(WidgetArray& wid, const GUI::Font& font,
...
@@ -727,7 +727,7 @@ void Dialog::addOKCancelBGroup(WidgetArray& wid, const GUI::Font& font,
_w
=
std
::
max
(
HBORDER
*
2
+
buttonWidth
*
2
+
BUTTON_GAP
,
_w
);
_w
=
std
::
max
(
HBORDER
*
2
+
buttonWidth
*
2
+
BUTTON_GAP
,
_w
);
#ifndef BSPF_MAC
_
OS
X
#ifndef BSPF_MACOS
addOKWidget
(
new
ButtonWidget
(
this
,
font
,
_w
-
2
*
buttonWidth
-
HBORDER
-
BUTTON_GAP
,
addOKWidget
(
new
ButtonWidget
(
this
,
font
,
_w
-
2
*
buttonWidth
-
HBORDER
-
BUTTON_GAP
,
_h
-
buttonHeight
-
VBORDER
,
buttonWidth
,
buttonHeight
,
okText
,
GuiObject
::
kOKCmd
));
_h
-
buttonHeight
-
VBORDER
,
buttonWidth
,
buttonHeight
,
okText
,
GuiObject
::
kOKCmd
));
addCancelWidget
(
new
ButtonWidget
(
this
,
font
,
_w
-
(
buttonWidth
+
HBORDER
),
addCancelWidget
(
new
ButtonWidget
(
this
,
font
,
_w
-
(
buttonWidth
+
HBORDER
),
...
...
src/gui/HelpDialog.cxx
View file @
933c4d7d
...
@@ -84,7 +84,7 @@ HelpDialog::HelpDialog(OSystem& osystem, DialogContainer& parent,
...
@@ -84,7 +84,7 @@ HelpDialog::HelpDialog(OSystem& osystem, DialogContainer& parent,
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void
HelpDialog
::
updateStrings
(
uInt8
page
,
uInt8
lines
,
string
&
title
)
void
HelpDialog
::
updateStrings
(
uInt8
page
,
uInt8
lines
,
string
&
title
)
{
{
#ifdef BSPF_MAC
_
OS
X
#ifdef BSPF_MACOS
#define ALT_ "Cmd"
#define ALT_ "Cmd"
#else
#else
#define ALT_ "Alt"
#define ALT_ "Alt"
...
@@ -102,7 +102,7 @@ void HelpDialog::updateStrings(uInt8 page, uInt8 lines, string& title)
...
@@ -102,7 +102,7 @@ void HelpDialog::updateStrings(uInt8 page, uInt8 lines, string& title)
{
{
case
1
:
case
1
:
title
=
"Common commands"
;
title
=
"Common commands"
;
#ifndef BSPF_MAC
_
OS
X
#ifndef BSPF_MACOS
ADD_BIND
(
"Ctrl Q"
,
"Quit emulation"
);
ADD_BIND
(
"Ctrl Q"
,
"Quit emulation"
);
#else
#else
ADD_BIND
(
"Cmd Q"
,
"Quit emulation"
);
ADD_BIND
(
"Cmd Q"
,
"Quit emulation"
);
...
...
src/gui/LauncherDialog.cxx
View file @
933c4d7d
...
@@ -131,7 +131,7 @@ LauncherDialog::LauncherDialog(OSystem& osystem, DialogContainer& parent,
...
@@ -131,7 +131,7 @@ LauncherDialog::LauncherDialog(OSystem& osystem, DialogContainer& parent,
// Add four buttons at the bottom
// Add four buttons at the bottom
xpos
=
10
;
ypos
+=
myDir
->
getHeight
()
+
8
;
xpos
=
10
;
ypos
+=
myDir
->
getHeight
()
+
8
;
#ifndef BSPF_MAC
_
OS
X
#ifndef BSPF_MACOS
myStartButton
=
new
ButtonWidget
(
this
,
font
,
xpos
,
ypos
,
(
bwidth
+
0
)
/
4
,
bheight
,
myStartButton
=
new
ButtonWidget
(
this
,
font
,
xpos
,
ypos
,
(
bwidth
+
0
)
/
4
,
bheight
,
"Select"
,
kLoadROMCmd
);
"Select"
,
kLoadROMCmd
);
wid
.
push_back
(
myStartButton
);
wid
.
push_back
(
myStartButton
);
...
...
src/macos
x
/AboutBox.h
→
src/macos/AboutBox.h
View file @
933c4d7d
...
@@ -18,8 +18,8 @@
...
@@ -18,8 +18,8 @@
#import <Cocoa/Cocoa.h>
#import <Cocoa/Cocoa.h>
/**
/**
AboutBox window class and support functions for the
M
ac
intosh OS X
AboutBox window class and support functions for the
m
ac
OS
SDL port of Stella.
SDL
2
port of Stella.
@author Mark Grebe <atarimac@cox.net>
@author Mark Grebe <atarimac@cox.net>
*/
*/
...
...
src/macos
x
/AboutBox.m
→
src/macos/AboutBox.m
View file @
933c4d7d
File moved
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment