Changeset 352 for trunk/Direct.pas


Ignore:
Timestamp:
Apr 6, 2021, 10:16:55 PM (3 years ago)
Author:
chronos
Message:
  • Modified: TTexture changed from record to class.
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Direct.pas

    r347 r352  
    6060  case ID of
    6161    ntInitLocalHuman: begin
    62       SetMainTextureByAge(-1);
     62      MainTexture.Age := -1;
    6363      State := -1;
    6464      Info := Phrases.Lookup('BUSY_MODLH');
     
    151151        while BiColorTextWidth(Canvas, Info) + 64 > ClientWidth do
    152152          Delete(Info, Length(Info), 1);
    153         SetMainTextureByAge(-1);
     153        MainTexture.Age := -1;
    154154        State := -1;
    155155        Show;
     
    276276  Frame(Canvas, 0, 0, ClientWidth - 1, ClientHeight - 1, 0, 0);
    277277  Frame(Canvas, 1, 1, ClientWidth - 2, ClientHeight - 2,
    278     MainTexture.clBevelLight, MainTexture.clBevelShade);
     278    MainTexture.ColorBevelLight, MainTexture.ColorBevelShade);
    279279  Frame(Canvas, 2, 2, ClientWidth - 3, ClientHeight - 3,
    280     MainTexture.clBevelLight, MainTexture.clBevelShade);
     280    MainTexture.ColorBevelLight, MainTexture.ColorBevelShade);
    281281  if State >= 0 then
    282282    RisedTextOut(Canvas, (ClientWidth - BiColorTextWidth(Canvas, Info))
Note: See TracChangeset for help on using the changeset viewer.