Ignore:
Timestamp:
May 9, 2020, 4:02:07 PM (4 years ago)
Author:
chronos
Message:
  • Modified: Improved HighDPI branch. Imported new changes from trunk branch.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/Direct.pas

    r143 r210  
    55
    66uses
    7   Messg,
     7  UDpiControls, Messg,
    88
    99  LCLIntf, LCLType, {$IFDEF Linux}LMessages, {$ENDIF}Messages, SysUtils, Classes,
     
    129129          ShowModal;
    130130          if ModalResult = mrOK then
    131             OpenURL('http://c-evo.org/_sg/contact/cevobug.html');
     131            OpenURL(CevoContactBug);
    132132        end
    133133    *)
     
    216216  if Brains.Count = 3 then
    217217  begin
    218     Application.MessageBox(PChar(Phrases.Lookup('NOAI')), 'C-evo', 0);
     218    DpiApplication.MessageBox(PChar(Phrases.Lookup('NOAI')), 'C-evo', 0);
    219219    Close;
    220     exit
     220    exit;
    221221  end;
    222222  Quick := false;
     
    244244      begin
    245245        SimpleMessage(Phrases.Lookup('LOADERR'));
    246         Close
    247       end
    248     end
    249   end;
    250   if not Quick then
    251   begin
     246        Close;
     247      end;
     248    end;
     249  end;
     250  if not Quick then begin
    252251    background.Show;
    253     StartDlg.Show
    254   end
     252    StartDlg.Show;
     253  end;
    255254end;
    256255
     
    267266procedure TDirectDlg.OnAIException(var Msg: TMessage);
    268267begin
    269   Application.MessageBox(PChar(Format(Phrases.Lookup('AIEXCEPTION'),
     268  DpiApplication.MessageBox(PChar(Format(Phrases.Lookup('AIEXCEPTION'),
    270269    [Brains[Msg.WParam].Name])), 'C-evo', 0);
    271270end;
     
    310309    PaintProgressBar(Canvas, 6, ClientWidth div 2 - 64, 40, State, 128 - State,
    311310      128, MainTexture);
    312   end
     311  end;
    313312end;
    314313
Note: See TracChangeset for help on using the changeset viewer.