Changeset 361 for branches/highdpi/Direct.pas
- Timestamp:
- Apr 9, 2021, 5:56:50 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Direct.pas
r349 r361 60 60 case ID of 61 61 ntInitLocalHuman: begin 62 SetMainTextureByAge(-1);62 MainTexture.Age := -1; 63 63 State := -1; 64 64 Info := Phrases.Lookup('BUSY_MODLH'); 65 65 Show; 66 66 {$IFDEF LINUX} 67 // Force shown window repaint on Gtk2 widgetset 68 Sleep(1); 67 69 DpiApplication.ProcessMessages; 68 70 {$ENDIF} … … 151 153 while BiColorTextWidth(Canvas, Info) + 64 > ClientWidth do 152 154 Delete(Info, Length(Info), 1); 153 SetMainTextureByAge(-1);155 MainTexture.Age := -1; 154 156 State := -1; 155 157 Show; 156 158 {$IFDEF LINUX} 159 // Force shown window repaint on Gtk2 widgetset 160 Sleep(1); 157 161 DpiApplication.ProcessMessages; 158 162 {$ENDIF} … … 276 280 Frame(Canvas, 0, 0, ClientWidth - 1, ClientHeight - 1, 0, 0); 277 281 Frame(Canvas, 1, 1, ClientWidth - 2, ClientHeight - 2, 278 MainTexture. clBevelLight, MainTexture.clBevelShade);282 MainTexture.ColorBevelLight, MainTexture.ColorBevelShade); 279 283 Frame(Canvas, 2, 2, ClientWidth - 3, ClientHeight - 3, 280 MainTexture. clBevelLight, MainTexture.clBevelShade);284 MainTexture.ColorBevelLight, MainTexture.ColorBevelShade); 281 285 if State >= 0 then 282 286 RisedTextOut(Canvas, (ClientWidth - BiColorTextWidth(Canvas, Info))
Note:
See TracChangeset
for help on using the changeset viewer.