You've already forked lazarus-ccr
* Fix some range check errors
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2189 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -14707,7 +14707,7 @@ begin
|
||||
Result := DROPEFFECT_MOVE or DROPEFFECT_COPY;
|
||||
DragOver(S, ShiftState, TDragState(ADragMessage), APosition, LongWord(Result));
|
||||
FLastVCLDragTarget := FDropTargetNode;
|
||||
FVCLDragEffect := Result;
|
||||
FVCLDragEffect := LongWord(Result);
|
||||
if (ADragMessage = dmDragLeave) and Assigned(FDropTargetNode) then
|
||||
begin
|
||||
InvalidateNode(FDropTargetNode);
|
||||
@ -15082,9 +15082,9 @@ begin
|
||||
begin
|
||||
SystemParametersInfo(SPI_GETWHEELSCROLLLINES, 0, @ScrollLines, 0);
|
||||
if ScrollLines = WHEEL_PAGESCROLL then
|
||||
ScrollAmount := Trunc(WheelFactor * ClientHeight)
|
||||
ScrollAmount := Integer(Trunc(WheelFactor * ClientHeight))
|
||||
else
|
||||
ScrollAmount := Trunc(WheelFactor * ScrollLines * FDefaultNodeHeight);
|
||||
ScrollAmount := Integer(Trunc(WheelFactor * ScrollLines * FDefaultNodeHeight));
|
||||
end;
|
||||
SetOffsetY(FOffsetY + ScrollAmount);
|
||||
end
|
||||
|
Reference in New Issue
Block a user