NetSurf
Functions
browser.c File Reference

Browser core functionality. More...

#include "utils/errors.h"
#include "utils/log.h"
#include "utils/utils.h"
#include "netsurf/browser.h"
#include "css/utils.h"
Include dependency graph for browser.c:

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 core functionality.

Definition in file browser.c.

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: