Changeset 302 for tools/Prepare DPI/UFormMain.pas
- Timestamp:
- Mar 9, 2021, 12:17:29 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/Prepare DPI/UFormMain.pas
r243 r302 34 34 var 35 35 FormMain: TFormMain; 36 TypeNames: array[0..1 0] of string = ('Bitmap', 'Form', 'Font', 'WinControl', 'ListBox',36 TypeNames: array[0..15] of string = ('Bitmap', 'Form', 'Font', 'WinControl', 'ListBox', 37 37 'GraphicControl', 'ScrollBar', 'Canvas', 'RasterImage', 'PortableNetworkGraphic', 38 'JpegImage' );38 'JpegImage', 'Control', 'MenuItem', 'PopupMenu', 'ControlBorderSpacing', 'Edit'); 39 39 40 40 implementation … … 147 147 Line := StringReplace(Line, 'BitBlt(', 'DpiBitBlt(', [rfReplaceAll]); 148 148 Line := StringReplace(Line, 'BitBltCanvas(', 'DpiBitCanvas(', [rfReplaceAll]); 149 Line := StringReplace(Line, 'GetSystemMetrics(', 'DpiGetSystemMetrics(', [rfReplaceAll]); 149 150 Line := StringReplace(Line, 'CreateRectRgn(', 'DpiCreateRectRgn(', [rfReplaceAll]); 151 Line := StringReplace(Line, 'ScrollDC(', 'DpiScrollDC(', [rfReplaceAll]); 150 152 if Lines[I] <> Line then Inc(Differences); 151 153 Lines[I] := Line;
Note:
See TracChangeset
for help on using the changeset viewer.