Adjust GDI Scaling in Regedit for Legacy Apps

This guide explains how to adjust and enable high-DPI resolution scaling for legacy GDI (Graphics Device Interface) applications in Windows using the Registry Editor (Regedit). By configuring specific application compatibility flags in the Windows Registry, you can force legacy desktop programs to scale sharply and eliminate blurry interface elements on high-resolution displays.

Steps to Enable GDI Scaling via Regedit

1. Open the Registry Editor

  1. Press Win + R to open the Run dialog box.
  2. Type regedit and press Enter (or click OK).
  3. Select Yes when prompted by User Account Control (UAC).

In the address bar at the top of the Registry Editor, navigate to one of the following paths depending on whether you want to apply the fix to the current user or all users:

Note: If the Layers key does not exist under AppCompatFlags, right-click AppCompatFlags, select New > Key, and name it Layers.

3. Create the Application Entry

  1. Right-click on an empty area inside the right pane of the Layers folder.
  2. Select New > String Value.
  3. Name the new String Value with the full file path of your legacy application executable (e.g., C:\Program Files (x86)\LegacySoftware\app.exe).

4. Set the GDI DPI Scaling Value

  1. Double-click the newly created string value to edit it.

  2. In the Value data field, enter:

    ~ GDIDPISCALING
  3. Click OK to save the changes.

Tip: If you need to combine this with forcing the application to run as DPI unaware before scaling, use ~ GDIDPISCALING DPIUNAWARE.

5. Verify the Changes

  1. Close the Registry Editor.
  2. Launch the legacy GDI application.
  3. Text and user interface components should now render natively at the target display’s DPI scaling factor rather than being stretched using standard bitmap scaling.

Reverting the Scaling Setting

To disable GDI scaling and restore default behavior, open the Registry Editor, navigate back to the Layers key, right-click the string value representing the application path, and select Delete.