mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 18:19:07 +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;
|
procedure TCarbonComboBox.ValueChanged;
|
||||||
begin
|
begin
|
||||||
|
writeln('crb: ', LCLObject.Name,' value changed!');
|
||||||
if FReadOnly then ListItemSelected(GetValue - 1);
|
if FReadOnly then ListItemSelected(GetValue - 1);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -1575,8 +1576,8 @@ begin
|
|||||||
|
|
||||||
if OSError(TXNGetLineMetrics(O, AIndex, W, H), Self, SName, 'TXNGetLineMetrics') then Exit;
|
if OSError(TXNGetLineMetrics(O, AIndex, W, H), Self, SName, 'TXNGetLineMetrics') then Exit;
|
||||||
if OSError(TXNOffsetToHIPoint(O, 0, P), Self, SName, 'TXNOffsetToHIPoint') then Exit;
|
if OSError(TXNOffsetToHIPoint(O, 0, P), Self, SName, 'TXNOffsetToHIPoint') then Exit;
|
||||||
LineTop := P.y + AIndex * (H / $10000);
|
LineTop := P.y + AIndex * Fix2X(H);
|
||||||
LineBottom := LineTop + H / $10000;
|
LineBottom := LineTop + Fix2X(H);
|
||||||
|
|
||||||
// find line offset with bisection
|
// find line offset with bisection
|
||||||
TextStart := 0;
|
TextStart := 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user