Changeset 507 for trunk/Packages/DpiControls
- Timestamp:
- Dec 25, 2023, 12:01:22 PM (23 months ago)
- File:
- 
      - 1 edited
 
 - 
          
  trunk/Packages/DpiControls/Dpi.PixelPointer.pas (modified) (2 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      trunk/Packages/DpiControls/Dpi.PixelPointer.pasr506 r507 148 148 {$IFOPT R+} 149 149 var 150 B: Integer; 150 151 X: Integer; 151 152 Y: Integer; … … 155 156 if (PByte(Pixel) < PByte(Data)) or 156 157 (PByte(Pixel) >= PByte(Data) + Height * BytesPerLine) then begin 157 X:= PByte(Pixel) - PByte(Data);158 Y := Floor( X/ BytesPerLine);159 X := X- Y * BytesPerLine;158 B := PByte(Pixel) - PByte(Data); 159 Y := Floor(B / BytesPerLine); 160 X := B - Y * BytesPerLine; 160 161 X := Floor(X / BytesPerPixel); 161 162 raise Exception.Create(Format(SOutOfRange, [X, Y])); 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
