LCL: fixed range error with fpc >= 3.0.4

git-svn-id: trunk@55800 -
This commit is contained in:
zeljko 2017-09-08 12:49:39 +00:00
parent 520a347095
commit 59f97ca1b5

View File

@ -92,8 +92,8 @@ begin
// hot spots are stored in the local header of cursor
CursorStream.Read(LocalHeader, SizeOf(LocalHeader));
IconEntry.bWidth := DirEntry^.wWidth;
IconEntry.bHeight := DirEntry^.wHeight div 2; // in cursor resource the height is doubled
IconEntry.bWidth := Byte(DirEntry^.wWidth);
IconEntry.bHeight := Byte(DirEntry^.wHeight) div 2; // in cursor resource the height is doubled
IconEntry.bColorCount := 0;
IconEntry.bReserved := 0;
IconEntry.wXHotSpot := LocalHeader.xHotSpot;