Hello,
the attached patch avoids misaligned data access (bus errors), during
font rendering (with the graph unit) on Arm-Linux devices.
Regards, Bernd.
Index: packages/graph/src/inc/gtext.inc
===================================================================
--- packages/graph/src/inc/gtext.inc (Revision 10376)
+++ packages/graph/src/inc/gtext.inc (Arbeitskopie)
@@ -68,7 +68,12 @@
{ pStroke = ^TStroke;}
+
+{$ifdef cpuarm}
+ TStroke = record { avoid misaligned data access }
+{$else}
TStroke = packed record
+{$endif cpuarm}
opcode: byte;
x: smallint; { relative x offset character }
y: smallint; { relative y offset character }
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel