From 8b4c96a953bf8a4cda6a1db40a94b4018b155dcf Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Wed, 23 Nov 2011 22:33:02 +0000 Subject: [PATCH] Comment's... svn path=/trunk/netsurf/; revision=13171 --- atari/plot/plotter_vdi.h | 45 ++++++++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 16 deletions(-) diff --git a/atari/plot/plotter_vdi.h b/atari/plot/plotter_vdi.h index b12c00d54..82cc42e54 100755 --- a/atari/plot/plotter_vdi.h +++ b/atari/plot/plotter_vdi.h @@ -22,21 +22,34 @@ #include struct s_vdi_priv_data { - short bufops; - void * buf_packed; /* temp buffer for bitmap conversion */ - int size_buf_packed; - void * buf_planar; /* temp buffer for bitmap conversion */ + short bufops; + /* temp buffer for bitmap conversion: */ + void * buf_packed; + int size_buf_packed; + + /* temp buffer for bitmap conversion: */ + void * buf_planar; int size_buf_planar; - MFDB buf_scr; /* buffer for plot operations that require device format */ - int size_buf_scr; - struct bitmap * buf_scr_compat; - HermesFormat vfmt; /* framebuffer format */ - /* no screen format here, hermes may not suitable for it */ - HermesFormat nsfmt; /* netsurf bitmap format */ + + /* buffer for plot operations that require device format, */ + /* currently used for transparent mfdb blits: */ + MFDB buf_scr; + int size_buf_scr; + struct bitmap * buf_scr_compat; + + /* intermediate bitmap format */ + HermesFormat vfmt; + + /* no screen format here, hermes may not suitable for it */ + + /* netsurf source bitmap format */ + HermesFormat nsfmt; }; - -#define CONV_KEEP_LIMIT 512000 /* how much memory should be kept allocated for temp. conversion bitmaps? */ -#define CONV_BLOCK_SIZE 32000 /* how much memory to allocate if some is needed */ + +/* how much memory should be kept allocated for temp. conversion bitmaps: */ +#define CONV_KEEP_LIMIT 512000 +/* how much memory to allocate if some is needed: */ +#define CONV_BLOCK_SIZE 32000 /* this is an shortcut cast to access the members of the s_vdi_priv_data */ #define DUMMY_PRIV(self) ((struct s_vdi_priv_data*)self->priv_data) @@ -51,9 +64,9 @@ int ctor_plotter_vdi( GEM_PLOTTER p ); * param y absolute screen coords * param w width * param h height -* -* This creates an snapshot in RGBA format (NetSurf's native format) -* +* +* This creates an snapshot in RGBA format (NetSurf's native format) +* */ static struct bitmap * snapshot_create(GEM_PLOTTER self, int x, int y, int w, int h);