问题:官方 QC 的一个 Firemonkey 移动平台画线问题:
RSP-14309: [iOS & Android] Delphi 10.1 Berlin - drawing problems
修复方法:
请将源码 FMX.StrokeBuilder.pas复制到自己的工程目录里,再进行修改。
<span style="color: #0000ff;">procedure TStrokeBuilder.InsertDash(SrcPos,DestPos: TPointF; <span style="color: #0000ff;">const<span style="color: #000000;"> DashDirVec,ThickPerp: TPointF);
Step2: 修改代码
原始代码:RoundShift := DashDirVec *<span style="color: #000000;"> FHalfThickness; // Delete this line
修正代码:RoundShift := DashDirVec; // Add this line
修正前:
修正后:
其它相关 QC: