mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 03:29:28 +02:00
synedit: fixed issue #12555
* removed lazarus specific code to linearize the possible values of a set, not necessary anymore since the internal format of set has changed on big endian cpu, see http://wiki.lazarus.freepascal.org/index.php?title=User_Changes_2.2.2&oldid=31423#Internal_format_of_sets git-svn-id: trunk@17199 -
This commit is contained in:
parent
bf64fc10ff
commit
ad4ab60d09
@ -869,11 +869,7 @@ begin
|
|||||||
{$ELSE}
|
{$ELSE}
|
||||||
ASSERT(SizeOf(TFontStyles) = 1);
|
ASSERT(SizeOf(TFontStyles) = 1);
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{$IFDEF SYN_LAZARUS}
|
|
||||||
idx := integer(Value);
|
|
||||||
{$ELSE}
|
|
||||||
idx := PByte(@Value)^;
|
idx := PByte(@Value)^;
|
||||||
{$ENDIF}
|
|
||||||
ASSERT(idx <= High(TheStockFontPatterns));
|
ASSERT(idx <= High(TheStockFontPatterns));
|
||||||
|
|
||||||
UseFontHandles;
|
UseFontHandles;
|
||||||
@ -1196,11 +1192,7 @@ procedure TheTextDrawer2.SetStyle(Value: TFontStyles);
|
|||||||
var
|
var
|
||||||
idx: Integer;
|
idx: Integer;
|
||||||
begin
|
begin
|
||||||
{$IFDEF SYN_LAZARUS}
|
|
||||||
idx := integer(Value);
|
|
||||||
{$ELSE}
|
|
||||||
idx := PByte(@Value)^;
|
idx := PByte(@Value)^;
|
||||||
{$ENDIF}
|
|
||||||
if FFonts[idx] <> 0 then
|
if FFonts[idx] <> 0 then
|
||||||
begin
|
begin
|
||||||
FCrntFont := FFonts[idx];
|
FCrntFont := FFonts[idx];
|
||||||
|
Loading…
Reference in New Issue
Block a user