Ignore:
Timestamp:
Mar 27, 2024, 12:31:14 PM (8 months ago)
Author:
chronos
Message:
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/Rates.pas

    r530 r531  
    4545procedure TRatesDlg.OffscreenPaint;
    4646var
    47   P, X, Y, current, Max, I: Integer;
     47  P, X, Y, Current, Max, I: Integer;
    4848  S, s1: string;
    4949begin
     
    112112    X := 16;
    113113    Y := 81;
    114     current := (100 - MyRO.LuxRate - MyRO.TaxRate) * 120 div 100;
     114    Current := (100 - MyRO.LuxRate - MyRO.TaxRate) * 120 div 100;
    115115    Max := 120;
    116116    Frame(Offscreen.Canvas, X - 1, Y - 1, X + Max, Y + 7, $000000, $000000);
     
    119119    with Offscreen.Canvas do
    120120    begin
    121       for I := 0 to current div 8 - 1 do
     121      for I := 0 to Current div 8 - 1 do
    122122        BitBltBitmap(Offscreen, X + Max - 8 - I * 8, Y, 8, 7,
    123123          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,
    125125        HGrSystem.Data, 104, 9 + 8 * 2);
    126126      Brush.Color := $000000;
    127       FillRect(Rect(X, Y, X + Max - current, Y + 7));
     127      FillRect(Rect(X, Y, X + Max - Current, Y + 7));
    128128      Brush.Style := TBrushStyle.bsClear;
    129129    end;
Note: See TracChangeset for help on using the changeset viewer.