34 if (dpi < 72 || dpi > 250) {
36 dpi =
min(
max(dpi, 72), 250);
37 NSLOG(netsurf, INFO,
"Clamping invalid DPI %d to %d", bad, dpi);
css_fixed nscss_screen_dpi
Screen DPI in fixed point units: defaults to 90, which RISC OS uses.
int browser_get_dpi(void)
Get the browser DPI.
nserror browser_set_dpi(int dpi)
Set the DPI of the browser.
nserror
Enumeration of error codes.
#define NSLOG(catname, level, logmsg, args...)
Interface to a number of general purpose functionality.