NetSurf
Functions
browser.h File Reference

Browser interfaces. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

nserror browser_set_dpi (int dpi)
 Set the DPI of the browser. More...
 
int browser_get_dpi (void)
 Get the browser DPI. More...
 

Detailed Description

Browser interfaces.

Definition in file browser.h.

Function Documentation

◆ browser_get_dpi()

int browser_get_dpi ( void  )

Get the browser DPI.

Returns
The DPI in use.

Definition at line 45 of file browser.c.

References nscss_screen_dpi.

Referenced by fb_fill_scalar(), and nsgtk_setup().

Here is the caller graph for this function:

◆ browser_set_dpi()

nserror browser_set_dpi ( int  dpi)

Set the DPI of the browser.

Parameters
dpiThe DPI to set.

Definition at line 32 of file browser.c.

References max, min, nscss_screen_dpi, NSERROR_OK, and NSLOG.

Referenced by ami_font_setdevicedpi(), nsgtk_setup(), and WinMain().

Here is the caller graph for this function: