Changeset 531 for trunk/LocalPlayer/Rates.pas
- Timestamp:
- Mar 27, 2024, 12:31:14 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/Rates.pas
r530 r531 45 45 procedure TRatesDlg.OffscreenPaint; 46 46 var 47 P, X, Y, current, Max, I: Integer;47 P, X, Y, Current, Max, I: Integer; 48 48 S, s1: string; 49 49 begin … … 112 112 X := 16; 113 113 Y := 81; 114 current := (100 - MyRO.LuxRate - MyRO.TaxRate) * 120 div 100;114 Current := (100 - MyRO.LuxRate - MyRO.TaxRate) * 120 div 100; 115 115 Max := 120; 116 116 Frame(Offscreen.Canvas, X - 1, Y - 1, X + Max, Y + 7, $000000, $000000); … … 119 119 with Offscreen.Canvas do 120 120 begin 121 for I := 0 to current div 8 - 1 do121 for I := 0 to Current div 8 - 1 do 122 122 BitBltBitmap(Offscreen, X + Max - 8 - I * 8, Y, 8, 7, 123 123 HGrSystem.Data, 104, 9 + 8 * 2); 124 BitBltBitmap(Offscreen, X + Max - current, Y, current - 8 * (current div 8), 7,124 BitBltBitmap(Offscreen, X + Max - Current, Y, Current - 8 * (Current div 8), 7, 125 125 HGrSystem.Data, 104, 9 + 8 * 2); 126 126 Brush.Color := $000000; 127 FillRect(Rect(X, Y, X + Max - current, Y + 7));127 FillRect(Rect(X, Y, X + Max - Current, Y + 7)); 128 128 Brush.Style := TBrushStyle.bsClear; 129 129 end;
Note:
See TracChangeset
for help on using the changeset viewer.