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;
|
Result := DROPEFFECT_MOVE or DROPEFFECT_COPY;
|
||||||
DragOver(S, ShiftState, TDragState(ADragMessage), APosition, LongWord(Result));
|
DragOver(S, ShiftState, TDragState(ADragMessage), APosition, LongWord(Result));
|
||||||
FLastVCLDragTarget := FDropTargetNode;
|
FLastVCLDragTarget := FDropTargetNode;
|
||||||
FVCLDragEffect := Result;
|
FVCLDragEffect := LongWord(Result);
|
||||||
if (ADragMessage = dmDragLeave) and Assigned(FDropTargetNode) then
|
if (ADragMessage = dmDragLeave) and Assigned(FDropTargetNode) then
|
||||||
begin
|
begin
|
||||||
InvalidateNode(FDropTargetNode);
|
InvalidateNode(FDropTargetNode);
|
||||||
@ -15082,9 +15082,9 @@ begin
|
|||||||
begin
|
begin
|
||||||
SystemParametersInfo(SPI_GETWHEELSCROLLLINES, 0, @ScrollLines, 0);
|
SystemParametersInfo(SPI_GETWHEELSCROLLLINES, 0, @ScrollLines, 0);
|
||||||
if ScrollLines = WHEEL_PAGESCROLL then
|
if ScrollLines = WHEEL_PAGESCROLL then
|
||||||
ScrollAmount := Trunc(WheelFactor * ClientHeight)
|
ScrollAmount := Integer(Trunc(WheelFactor * ClientHeight))
|
||||||
else
|
else
|
||||||
ScrollAmount := Trunc(WheelFactor * ScrollLines * FDefaultNodeHeight);
|
ScrollAmount := Integer(Trunc(WheelFactor * ScrollLines * FDefaultNodeHeight));
|
||||||
end;
|
end;
|
||||||
SetOffsetY(FOffsetY + ScrollAmount);
|
SetOffsetY(FOffsetY + ScrollAmount);
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user