Dan Kegel : winecfg: Restrict dpi slider to sane values.

Chris Robinson chris.kcat at gmail.com
Sat Apr 26 19:55:04 CDT 2008

On Saturday 26 April 2008 04:58:53 pm John Klehm wrote:
> On Sat, Apr 26, 2008 at 6:22 PM, Dan Kegel <dank at kegel.com> wrote:
> >  I found a few monitors out there at 200 dpi, so perhaps that would
> >  be a reasonable upper limit, but we'd have to check to make sure that
> >  the average person with a crap monitor could set that to 200dpi,
> >  realize it was wrong, and set it back without having to edit
> >  the registry by hand.
> >  - Dan
> Why not wizardify it?  "Enter the physical size of your screen: x
> in/cm y in/cm"  Then use appropriate dpi based on current resolution?
> Does it not work like that?

What about getting the value from X? Since Windows only expects one DPI for 
both vertical and horizontal, while X provides two, Wine could just take the 
mean and autoset that on startup.

More information about the wine-devel mailing list