How to fix the current dpi bug with the PB editor (windows)

Share your advanced PureBasic knowledge/code with the community.
Jeromyal
Enthusiast
Enthusiast
Posts: 216
Joined: Wed Jul 17, 2013 8:49 am

How to fix the current dpi bug with the PB editor (windows)

Post by Jeromyal »

If you are a windows user and have that dpi problem with the editor there is a simple fix

either use my PureBasic_Portable launcher viewtopic.php?p=580186#p580186

OR

write your own launcher that set the following environment variable before you launch PureBasic with RunProgram()
SetEnvironmentVariable("__COMPAT_LAYER","GdiDPIScaling DPIUnaware")

Or you can add it to the user variables control panel of the system.

Hope this help those in need.