Changeset 374 for trunk/Packages


Ignore:
Timestamp:
Apr 23, 2021, 1:48:45 PM (4 years ago)
Author:
chronos
Message:
  • Fixed: Still possible crash during change of partialy produced project in city screen.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/CevoComponents/ScreenTools.pas

    r352 r374  
    126126function ScaleFromNative(Value: Integer): Integer;
    127127procedure UnshareBitmap(Bitmap: TBitmap);
     128procedure Gtk2Fix;
    128129
    129130const
     
    16631664end;
    16641665
     1666procedure Gtk2Fix;
     1667var
     1668  I: Integer;
     1669begin
     1670  {$IFDEF LINUX}
     1671  // Wait and process messages little bit to avoid crash or force repaint under Gtk2
     1672  for I := 0 to 10 do begin
     1673    Sleep(1);
     1674    Application.ProcessMessages;
     1675  end;
     1676  {$ENDIF}
     1677end;
     1678
    16651679procedure LoadFonts;
    16661680var
Note: See TracChangeset for help on using the changeset viewer.