[dev] [surf] Patch for high dpi screens

From: Nick <suckless-dev_AT_njw.me.uk>
Date: Tue, 16 Jul 2013 09:42:17 +0100

The attached patch ensures surf adheres more closely to the CSS spec
in making one px equal to 1/96 inch, regardless of the actual screen
pixel density. This is a typical web-style cop-out for the fact that
many stupid web designers only write things in terms of ~96dpi
desktop monitors. It sucks, but hey, it's the web.

One issue with this is that with a high DPI monitor, input fields
are zoomed too much, but that's presumably a bug in webkit (at least
the version I'm using, 1.8.1).

I'm not sure whether the default in config.def.h should be false. It
depends on what proportion of monitors badly misrepresent their
dimensions, I suppose.

But anyway, this should probably be applied, as it's needed for
websites to be viewable with devices with a DPI different from that
of a traditional desktop.

Nick

Received on Tue Jul 16 2013 - 10:42:17 CEST

This archive was generated by hypermail 2.3.0 : Tue Jul 16 2013 - 10:48:05 CEST