Ignore:
Timestamp:
Mar 9, 2021, 12:17:29 AM (3 years ago)
Author:
chronos
Message:
  • Modified: More types replaced by Prepare DPI tool.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/Prepare DPI/UFormMain.pas

    r243 r302  
    3434var
    3535  FormMain: TFormMain;
    36   TypeNames: array[0..10] of string = ('Bitmap', 'Form', 'Font', 'WinControl', 'ListBox',
     36  TypeNames: array[0..15] of string = ('Bitmap', 'Form', 'Font', 'WinControl', 'ListBox',
    3737    'GraphicControl', 'ScrollBar', 'Canvas', 'RasterImage', 'PortableNetworkGraphic',
    38     'JpegImage');
     38    'JpegImage', 'Control', 'MenuItem', 'PopupMenu', 'ControlBorderSpacing', 'Edit');
    3939
    4040implementation
     
    147147      Line := StringReplace(Line, 'BitBlt(', 'DpiBitBlt(', [rfReplaceAll]);
    148148      Line := StringReplace(Line, 'BitBltCanvas(', 'DpiBitCanvas(', [rfReplaceAll]);
     149      Line := StringReplace(Line, 'GetSystemMetrics(', 'DpiGetSystemMetrics(', [rfReplaceAll]);
    149150      Line := StringReplace(Line, 'CreateRectRgn(', 'DpiCreateRectRgn(', [rfReplaceAll]);
     151      Line := StringReplace(Line, 'ScrollDC(', 'DpiScrollDC(', [rfReplaceAll]);
    150152      if Lines[I] <> Line then Inc(Differences);
    151153      Lines[I] := Line;
Note: See TracChangeset for help on using the changeset viewer.