Ignore:
Timestamp:
Jun 25, 2020, 10:24:44 PM (4 years ago)
Author:
chronos
Message:
  • Fixed: Scaling IsoEngine ForgOfWar sprites.
  • Fixed: PopupMenu position calculated using not scaled GetSystemMetrics.
  • Fixed: Scale TDpiBitmaps using normal scaling functions to get pixels on valid expected possition.
  • Fixed: DpiBitBlt needs to be executed as StretchDraw for non-integer pixel scaling. This leads to slower drawing.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/LocalPlayer/Help.pas

    r255 r265  
    993993    Name: string;
    994994  begin
    995     RightMargin := InnerWidth - 16 - GetSystemMetrics(SM_CXVSCROLL);
     995    RightMargin := InnerWidth - 16 - DpiGetSystemMetrics(SM_CXVSCROLL);
    996996    FollowFormat := pkNormal;
    997997    while s <> '' do
     
    12551255      s := List[i];
    12561256      while BiColorTextWidth(OffScreen.Canvas, s) > InnerWidth - 16 -
    1257         GetSystemMetrics(SM_CXVSCROLL) do
     1257        DpiGetSystemMetrics(SM_CXVSCROLL) do
    12581258        Delete(s, length(s), 1);
    12591259      MainText.AddLine(s);
     
    12731273      s := List[i];
    12741274      while BiColorTextWidth(OffScreen.Canvas, s) > InnerWidth - 16 -
    1275         GetSystemMetrics(SM_CXVSCROLL) do
     1275        DpiGetSystemMetrics(SM_CXVSCROLL) do
    12761276        Delete(s, length(s), 1);
    12771277      MainText.AddLine(s);
     
    22482248
    22492249    // cut lines to fit to window
    2250     RightMargin := InnerWidth - 16 - GetSystemMetrics(SM_CXVSCROLL);
     2250    RightMargin := InnerWidth - 16 - DpiGetSystemMetrics(SM_CXVSCROLL);
    22512251    OffScreen.Canvas.Font.Assign(UniFont[ftNormal]);
    22522252    for i := 0 to SearchResult.Count - 1 do
Note: See TracChangeset for help on using the changeset viewer.