Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 0724f23

Browse files
committed
[[ Skia ]] Fix Mac desktop defines
1 parent abf7e5a commit 0724f23

File tree

13 files changed

+12
-51
lines changed

13 files changed

+12
-51
lines changed

engine/src/aclip.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ Boolean MCAudioClip::open_audio()
598598
}
599599
return True;
600600
}
601-
#elif defined _MACOSX
601+
#elif defined _MAC_DESKTOP
602602
Boolean MCAudioClip::open_audio() //plays a sound immediately
603603
{
604604
if (sound != NULL) //if sound is already open and constructed
@@ -713,7 +713,7 @@ Boolean MCAudioClip::play()
713713
return False;
714714
}
715715
return True;
716-
#elif defined _MACOSX
716+
#elif defined _MAC_DESKTOP
717717
SCStatus cs; //channel status record
718718
OSErr err = noErr;
719719
// the sizeof(SCStatus) gives 27 bytes, but the actual record size is 24
@@ -821,7 +821,7 @@ void MCAudioClip::stop(Boolean abort)
821821
waveOutClose(hwaveout);
822822
hwaveout = NULL;
823823
}
824-
#elif defined _MACOSX //minshe
824+
#elif defined _MAC_DESKTOP //minshe
825825
//MAC stuff here.... Send a quiet command to stop a sound that is currenty playing
826826
if (sound != NULL)
827827
{
@@ -958,7 +958,7 @@ uint2 MCS_getplayloudness()
958958
hwaveout = NULL;
959959
}
960960
}
961-
#elif defined _MACOSX
961+
#elif defined _MAC_DESKTOP
962962
long volume;
963963
GetDefaultOutputVolume(&volume);
964964
t_loudness = (HiWord(volume) + LoWord(volume)) * 50 / 255;
@@ -1002,7 +1002,7 @@ void MCS_setplayloudness(uint2 p_loudness)
10021002
hwaveout = NULL;
10031003
}
10041004
}
1005-
#elif defined _MACOSX
1005+
#elif defined _MAC_DESKTOP
10061006
long volume = p_loudness * 255 / 100;
10071007
SetDefaultOutputVolume(volume | volume << 16);
10081008
#elif defined TARGET_PLATFORM_LINUX

engine/src/button.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class MCButton : public MCControl, public MCMixinObjectHandle<MCButton>
196196
virtual Boolean mup(uint2 which, bool p_release);
197197
virtual Boolean doubledown(uint2 which);
198198
virtual Boolean doubleup(uint2 which);
199-
#ifdef _MACOSX
199+
#ifdef _MAC_DESKTOP
200200
virtual void timer(MCNameRef mptr, MCParameter *params);
201201
#endif
202202

engine/src/exec-interface2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1883,7 +1883,7 @@ void MCInterfaceSetHidePalettes(MCExecContext& ctxt, bool p_value)
18831883
{
18841884
MChidepalettes = p_value ? True : False;
18851885
// MW-2014-04-23: [[ Bug 12080 ]] Make sure we update the hidesOnSuspend of all palettes.
1886-
#ifdef _MACOSX
1886+
#ifdef _MAC_DESKTOP
18871887
MCstacks->hidepaletteschanged();
18881888
#endif
18891889
}

engine/src/fieldh.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ bool MCField::converttoparagraphs(void *p_context, const MCTextParagraph *p_para
928928
const char *t_font_name;
929929
t_font_name = p_block -> font_name == NULL ? "" : p_block -> font_name;
930930

931-
#if defined _MACOSX
931+
#if defined _MAC_DESKTOP
932932

933933
// MW-2011-03-13: [[ Bug ]] Try different variants of font searching to ensure we don't
934934
// get strange choices. (e.g. Helvetica -> Helvetica Light Oblique).

engine/src/globdefs.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,6 @@ along with LiveCode. If not see <http://www.gnu.org/licenses/>. */
5353

5454
////////////////////////////////////////////////////////////////////////////////
5555

56-
#if defined(_MOBILE)
57-
58-
#undef _MACOSX
59-
#undef _LINUX
60-
#undef _WINDOWS
61-
62-
#elif defined(_SERVER)
63-
64-
#undef _MACOSX
65-
#undef _LINUX
66-
#undef _WINDOWS
67-
68-
#endif
69-
7056
#include "sysdefs.h"
7157

7258
////////////////////////////////////////////////////////////////////////////////

engine/src/hc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2219,7 +2219,7 @@ IO_stat MCHcstak::read(IO_handle stream)
22192219
}
22202220
if (filetype == HC_RAW || rsize == 0)
22212221
{
2222-
#ifdef _MACOSX
2222+
#ifdef _MAC_DESKTOP
22232223
return macreadresources();
22242224
#else
22252225
return IO_NORMAL;

engine/src/mode.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,6 @@ bool MCModeMakeLocalWindows(void);
205205
void MCModeShowToolTip(int32_t x, int32_t y, uint32_t text_size, uint32_t bg_color, MCStringRef text_font, MCStringRef message);
206206
void MCModeHideToolTip(void);
207207

208-
#ifdef _MACOSX
209-
uint32_t MCModePopUpMenu(MCMacSysMenuHandle p_menu, int32_t p_x, int32_t p_y, uint32_t p_index, MCStack *p_stack);
210-
#endif
211-
212208
// This hook is used to handle the reset cursors action.
213209
void MCModeResetCursors(void);
214210

engine/src/mode_development.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -816,13 +816,6 @@ void MCRemotePageSetupDialog(MCDataRef p_config_data, MCDataRef &r_reply_data, u
816816
{
817817
}
818818

819-
#ifdef _MACOSX
820-
uint32_t MCModePopUpMenu(MCMacSysMenuHandle p_menu, int32_t p_x, int32_t p_y, uint32_t p_index, MCStack *p_stack)
821-
{
822-
return 0;
823-
}
824-
#endif
825-
826819
////////////////////////////////////////////////////////////////////////////////
827820
//
828821
// Implementation of Windows-specific mode hooks for DEVELOPMENT mode.

engine/src/mode_installer.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1736,13 +1736,6 @@ void MCRemotePageSetupDialog(MCDataRef p_config_data, MCDataRef &r_reply_data, u
17361736
{
17371737
}
17381738

1739-
#ifdef _MACOSX
1740-
uint32_t MCModePopUpMenu(MCMacSysMenuHandle p_menu, int32_t p_x, int32_t p_y, uint32_t p_index, MCStack *p_stack)
1741-
{
1742-
return 0;
1743-
}
1744-
#endif
1745-
17461739
////////////////////////////////////////////////////////////////////////////////
17471740
//
17481741
// Implementation of Windows-specific mode hooks for INSTALLER mode.

engine/src/mode_standalone.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,13 +1268,6 @@ void MCRemotePageSetupDialog(MCDataRef p_config_data, MCDataRef &r_reply_data, u
12681268
{
12691269
}
12701270

1271-
#ifdef _MACOSX
1272-
uint32_t MCModePopUpMenu(MCMacSysMenuHandle p_menu, int32_t p_x, int32_t p_y, uint32_t p_index, MCStack *p_stack)
1273-
{
1274-
return 0;
1275-
}
1276-
#endif
1277-
12781271
////////////////////////////////////////////////////////////////////////////////
12791272
//
12801273
// Implementation of Windows-specific mode hooks for STANDALONE mode.

0 commit comments

Comments
 (0)