mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 00:59:31 +02:00
carbon: change converting FixedWidth variable to float, instead of integer to determine LineOffsets. #18681
git-svn-id: trunk@30288 -
This commit is contained in:
parent
c20cf07caf
commit
e3864724ca
@ -804,6 +804,7 @@ end;
|
||||
------------------------------------------------------------------------------}
|
||||
procedure TCarbonComboBox.ValueChanged;
|
||||
begin
|
||||
writeln('crb: ', LCLObject.Name,' value changed!');
|
||||
if FReadOnly then ListItemSelected(GetValue - 1);
|
||||
end;
|
||||
|
||||
@ -1575,8 +1576,8 @@ begin
|
||||
|
||||
if OSError(TXNGetLineMetrics(O, AIndex, W, H), Self, SName, 'TXNGetLineMetrics') then Exit;
|
||||
if OSError(TXNOffsetToHIPoint(O, 0, P), Self, SName, 'TXNOffsetToHIPoint') then Exit;
|
||||
LineTop := P.y + AIndex * (H / $10000);
|
||||
LineBottom := LineTop + H / $10000;
|
||||
LineTop := P.y + AIndex * Fix2X(H);
|
||||
LineBottom := LineTop + Fix2X(H);
|
||||
|
||||
// find line offset with bisection
|
||||
TextStart := 0;
|
||||
|
Loading…
Reference in New Issue
Block a user