Changeset 374
- Timestamp:
- Apr 23, 2021, 1:48:45 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Direct.pas
r367 r374 58 58 // p: pointer; 59 59 s: string; 60 begin60 Begin 61 61 case ID of 62 62 ntInitLocalHuman: begin … … 65 65 Info := Phrases.Lookup('BUSY_MODLH'); 66 66 Show; 67 {$IFDEF LINUX} 68 // Force shown window repaint on Gtk2 widgetset 69 Sleep(1); 70 Application.ProcessMessages; 71 {$ENDIF} 67 Gtk2Fix; 72 68 Invalidate; 73 69 Update; … … 198 194 199 195 procedure TDirectDlg.FormShow(Sender: TObject); 196 var 197 I: Integer; 200 198 begin 201 199 if not Gone then -
trunk/LocalPlayer/CityScreen.pas
r357 r374 1492 1492 (cpImp or cpIndex) then 1493 1493 begin // loss of material -- do query 1494 Application.ProcessMessages; // TODO: Needed for Gtk2, Lazarus gtk2 bug?1494 Gtk2Fix; 1495 1495 if (pt1 = ptTrGoods) or (pt1 = ptShip) or (pt1 <> pt0) and 1496 1496 (pt0 <> ptCaravan) then begin -
trunk/Packages/CevoComponents/ScreenTools.pas
r352 r374 126 126 function ScaleFromNative(Value: Integer): Integer; 127 127 procedure UnshareBitmap(Bitmap: TBitmap); 128 procedure Gtk2Fix; 128 129 129 130 const … … 1663 1664 end; 1664 1665 1666 procedure Gtk2Fix; 1667 var 1668 I: Integer; 1669 begin 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} 1677 end; 1678 1665 1679 procedure LoadFonts; 1666 1680 var
Note:
See TracChangeset
for help on using the changeset viewer.