mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 01:19:16 +02:00
Cocoa: updating constants values to be friendly with arm cpus on mac, issue #39809
This commit is contained in:
parent
c4be275227
commit
73bad58fd3
@ -11,6 +11,10 @@
|
|||||||
// The issue is presumably only for 64-bit platform.
|
// The issue is presumably only for 64-bit platform.
|
||||||
// The workaround is possible! the issue should be fixed in future
|
// The workaround is possible! the issue should be fixed in future
|
||||||
// release of FPC, but 3.0.4 is the offical supported by LCL.
|
// release of FPC, but 3.0.4 is the offical supported by LCL.
|
||||||
|
{$if not(defined(CPUX86_64) or defined(CPUi386))}
|
||||||
|
{$define USE_IOS_VALUES}
|
||||||
|
{$endif}
|
||||||
|
|
||||||
{$if FPC_FULLVERSION>=30200}
|
{$if FPC_FULLVERSION>=30200}
|
||||||
{$undef BOOLFIX}
|
{$undef BOOLFIX}
|
||||||
{$else}
|
{$else}
|
||||||
|
@ -443,8 +443,8 @@ type
|
|||||||
// these constants are missing from CocoaAll for some reason
|
// these constants are missing from CocoaAll for some reason
|
||||||
const
|
const
|
||||||
NSTextAlignmentLeft = 0;
|
NSTextAlignmentLeft = 0;
|
||||||
NSTextAlignmentRight = 1; // it's 2 for iOS and family
|
NSTextAlignmentRight = {$ifdef USE_IOS_VALUES}2{$else}1{$endif}; // it's 2 for iOS and family
|
||||||
NSTextAlignmentCenter = 2; // it's 1 for iOS and family
|
NSTextAlignmentCenter = {$ifdef USE_IOS_VALUES}1{$else}2{$endif}; // it's 1 for iOS and family
|
||||||
NSTextAlignmentJustified = 3;
|
NSTextAlignmentJustified = 3;
|
||||||
NSTextAlignmentNatural = 4;
|
NSTextAlignmentNatural = 4;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user