Ignore:
Timestamp:
May 23, 2020, 12:45:14 AM (4 years ago)
Author:
chronos
Message:
  • Fixed: Scrolling under HighDPI. ScrollDC needs to be scaled as well.
File:
1 edited

Legend:

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

    r247 r252  
    110110    procedure WaterSign(x0, y0, iix: Integer);
    111111    procedure Search(SearchString: string);
    112     procedure OnScroll(var m: TMessage); message WM_VSCROLL;
     112    procedure OnScroll(var Msg: TMessage); message WM_VSCROLL;
    113113    procedure OnMouseLeave(var Msg: TMessage); message CM_MOUSELEAVE;
    114114  public
     
    342342end;
    343343
    344 procedure THelpDlg.OnScroll(var m: TMessage);
     344procedure THelpDlg.OnScroll(var Msg: TMessage);
    345345begin
    346346  { TODO: Handled by MouseWheel event
    347   if ScrollBar.Process(m) then begin
     347  if ScrollBar.Process(Msg) then begin
    348348    Sel := -1;
    349349    SmartUpdateContent(true)
     
    357357    Line(Canvas, Sel, false);
    358358    Sel := -1
    359   end
     359  end;
    360360end;
    361361
Note: See TracChangeset for help on using the changeset viewer.