NetSurf
Functions
buffer.h File Reference

Screen buffering (interface). More...

#include "oslib/wimp.h"
Include dependency graph for buffer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void ro_gui_buffer_open (const wimp_draw *redraw)
 Opens a buffer for writing to. More...
 
void ro_gui_buffer_close (void)
 Closes any open buffer and flushes the contents to screen. More...
 

Detailed Description

Screen buffering (interface).

Definition in file buffer.h.

Function Documentation

◆ ro_gui_buffer_close()

void ro_gui_buffer_close ( void  )

Closes any open buffer and flushes the contents to screen.

Definition at line 370 of file buffer.c.

References buffer, clipping, context0, context1, context2, context3, mode, nsoption_int, ro_gui_buffer_free(), ro_plot_origin_x, ro_plot_origin_y, save_area, Tinct_Plot, and tinct_SPRITE_MODE.

Referenced by ro_gui_buffer_open(), ro_gui_cleanup(), and ro_gui_window__redraw_rect().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ro_gui_buffer_open()

void ro_gui_buffer_open ( const wimp_draw *  redraw)

Opens a buffer for writing to.

The ro_plot_origin_ variables are updated to reflect the new screen origin, so the variables should be set before calling this function, and not changed until after ro_gui_buffer_close() has been called.

Parameters
redrawthe current WIMP redraw area to buffer

Definition at line 84 of file buffer.c.

References buffer, buffer_name, clipping, context0, context1, context2, context3, mode, NSLOG, osspriteop_TYPE16BPP4K, osspriteop_TYPEEXPANSION, PTR_OS_VDU_VAR_LIST, ro_convert_os_units_to_pixels(), ro_gui_buffer_close(), ro_gui_buffer_free(), ro_plot_origin_x, ro_plot_origin_y, save_area, tinct_SPRITE_MODE, and type.

Referenced by ro_gui_window__redraw_rect().

Here is the call graph for this function:
Here is the caller graph for this function: