summaryrefslogtreecommitdiff
path: root/atari/plot
diff options
context:
space:
mode:
authorOle Loots <ole@monochrom.net>2011-11-23 22:33:02 +0000
committerOle Loots <ole@monochrom.net>2011-11-23 22:33:02 +0000
commit8b4c96a953bf8a4cda6a1db40a94b4018b155dcf (patch)
treed9376a892a015a8925bc2c03cc1c84c5e9fd6b19 /atari/plot
parentcb84601b4463a002e93b91258ee0727178934f97 (diff)
downloadnetsurf-8b4c96a953bf8a4cda6a1db40a94b4018b155dcf.tar.gz
netsurf-8b4c96a953bf8a4cda6a1db40a94b4018b155dcf.tar.bz2
Comment's...
svn path=/trunk/netsurf/; revision=13171
Diffstat (limited to 'atari/plot')
-rwxr-xr-xatari/plot/plotter_vdi.h45
1 files 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 <Hermes/Hermes.h>
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);