summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-10-23 21:01:49 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-10-23 21:01:49 +0100
commit719a36972b60165fc45b956703a4860855145548 (patch)
tree2c4e6cc35a96dac402cefe0764b1fc3976799595 /amiga
parentc2b23e48f2591d90f79619e11b8ebcf582079e03 (diff)
downloadnetsurf-719a36972b60165fc45b956703a4860855145548.tar.gz
netsurf-719a36972b60165fc45b956703a4860855145548.tar.bz2
Greatly increase the space allocated for Area-operation vector storage. The SVG tiger is now rendering correctly with graphics.library plotting only (no Cairo)
Diffstat (limited to 'amiga')
-rwxr-xr-xamiga/plotters.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/amiga/plotters.c b/amiga/plotters.c
index 393b2d604..7347f064d 100755
--- a/amiga/plotters.c
+++ b/amiga/plotters.c
@@ -79,6 +79,11 @@ bool palette_mapped = false;
#define PATT_DASH 0xCCCC
#define PATT_LINE 0xFFFF
+/* This defines the size of the list for Area* functions.
+ 25000 = 5000 vectors
+ */
+#define AREA_SIZE 25000
+
/* Define the below to get additional debug */
#undef AMI_PLOTTER_DEBUG
@@ -155,7 +160,7 @@ void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height)
if(!height) height = nsoption_int(redraw_tile_size_y);
gg->layerinfo = NewLayerInfo();
- gg->areabuf = AllocVec(100, MEMF_PRIVATE | MEMF_CLEAR);
+ gg->areabuf = AllocVec(AREA_SIZE, MEMF_PRIVATE | MEMF_CLEAR);
gg->tmprasbuf = AllocVec(width * height, MEMF_PRIVATE | MEMF_CLEAR);
if(palette_mapped == true) {
@@ -186,7 +191,7 @@ void ami_init_layers(struct gui_globals *gg, ULONG width, ULONG height)
if((!gg->areabuf) || (!gg->rp->AreaInfo)) warn_user("NoMemory","");
- InitArea(gg->rp->AreaInfo,gg->areabuf,100/5);
+ InitArea(gg->rp->AreaInfo,gg->areabuf, AREA_SIZE/5);
gg->rp->TmpRas = AllocVec(sizeof(struct TmpRas),MEMF_PRIVATE | MEMF_CLEAR);
if((!gg->tmprasbuf) || (!gg->rp->TmpRas)) warn_user("NoMemory","");