Ignore:
Timestamp:
Apr 9, 2021, 5:56:50 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Merged changes from trunk r360 into highdpi branch.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/Direct.pas

    r349 r361  
    6060  case ID of
    6161    ntInitLocalHuman: begin
    62       SetMainTextureByAge(-1);
     62      MainTexture.Age := -1;
    6363      State := -1;
    6464      Info := Phrases.Lookup('BUSY_MODLH');
    6565      Show;
    6666      {$IFDEF LINUX}
     67      // Force shown window repaint on Gtk2 widgetset
     68      Sleep(1);
    6769      DpiApplication.ProcessMessages;
    6870      {$ENDIF}
     
    151153        while BiColorTextWidth(Canvas, Info) + 64 > ClientWidth do
    152154          Delete(Info, Length(Info), 1);
    153         SetMainTextureByAge(-1);
     155        MainTexture.Age := -1;
    154156        State := -1;
    155157        Show;
    156158        {$IFDEF LINUX}
     159        // Force shown window repaint on Gtk2 widgetset
     160        Sleep(1);
    157161        DpiApplication.ProcessMessages;
    158162        {$ENDIF}
     
    276280  Frame(Canvas, 0, 0, ClientWidth - 1, ClientHeight - 1, 0, 0);
    277281  Frame(Canvas, 1, 1, ClientWidth - 2, ClientHeight - 2,
    278     MainTexture.clBevelLight, MainTexture.clBevelShade);
     282    MainTexture.ColorBevelLight, MainTexture.ColorBevelShade);
    279283  Frame(Canvas, 2, 2, ClientWidth - 3, ClientHeight - 3,
    280     MainTexture.clBevelLight, MainTexture.clBevelShade);
     284    MainTexture.ColorBevelLight, MainTexture.ColorBevelShade);
    281285  if State >= 0 then
    282286    RisedTextOut(Canvas, (ClientWidth - BiColorTextWidth(Canvas, Info))
Note: See TracChangeset for help on using the changeset viewer.