Changeset 265 for branches/highdpi/LocalPlayer/Help.pas
- Timestamp:
- Jun 25, 2020, 10:24:44 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/Help.pas
r255 r265 993 993 Name: string; 994 994 begin 995 RightMargin := InnerWidth - 16 - GetSystemMetrics(SM_CXVSCROLL);995 RightMargin := InnerWidth - 16 - DpiGetSystemMetrics(SM_CXVSCROLL); 996 996 FollowFormat := pkNormal; 997 997 while s <> '' do … … 1255 1255 s := List[i]; 1256 1256 while BiColorTextWidth(OffScreen.Canvas, s) > InnerWidth - 16 - 1257 GetSystemMetrics(SM_CXVSCROLL) do1257 DpiGetSystemMetrics(SM_CXVSCROLL) do 1258 1258 Delete(s, length(s), 1); 1259 1259 MainText.AddLine(s); … … 1273 1273 s := List[i]; 1274 1274 while BiColorTextWidth(OffScreen.Canvas, s) > InnerWidth - 16 - 1275 GetSystemMetrics(SM_CXVSCROLL) do1275 DpiGetSystemMetrics(SM_CXVSCROLL) do 1276 1276 Delete(s, length(s), 1); 1277 1277 MainText.AddLine(s); … … 2248 2248 2249 2249 // cut lines to fit to window 2250 RightMargin := InnerWidth - 16 - GetSystemMetrics(SM_CXVSCROLL);2250 RightMargin := InnerWidth - 16 - DpiGetSystemMetrics(SM_CXVSCROLL); 2251 2251 OffScreen.Canvas.Font.Assign(UniFont[ftNormal]); 2252 2252 for i := 0 to SearchResult.Count - 1 do
Note:
See TracChangeset
for help on using the changeset viewer.