Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 70bb030

Browse files
switch agg rendering from 16 to 32 bits screen coordinates for huge images support
1 parent eb2f2ba commit 70bb030

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/_backend_agg.h

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,15 @@ typedef agg::renderer_scanline_aa_solid<renderer_base> renderer_aa;
6060
typedef agg::renderer_scanline_bin_solid<renderer_base> renderer_bin;
6161
typedef agg::rasterizer_scanline_aa<agg::rasterizer_sl_clip_dbl> rasterizer;
6262

63-
typedef agg::scanline_p8 scanline_p8;
64-
typedef agg::scanline_bin scanline_bin;
63+
// typedef agg::scanline_p8 scanline_p8; // 16 bits display rendering
64+
// typedef agg::scanline_bin scanline_bin; // 16 bits display rendering
65+
typedef agg::scanline32_p8 scanline_p8; // 32 bits display rendering
66+
typedef agg::scanline32_bin scanline_bin; // 32 bits display rendering
67+
6568
typedef agg::amask_no_clip_gray8 alpha_mask_type;
66-
typedef agg::scanline_u8_am<alpha_mask_type> scanline_am;
69+
70+
// typedef agg::scanline_u8_am<alpha_mask_type> scanline_am; // 16 bits display rendering
71+
typedef agg::scanline32_u8_am<alpha_mask_type> scanline_am; // 32 bits display rendering
6772

6873
typedef agg::renderer_base<agg::pixfmt_gray8> renderer_base_alpha_mask_type;
6974
typedef agg::renderer_scanline_aa_solid<renderer_base_alpha_mask_type> renderer_alpha_mask_type;

src/cntr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@
183183

184184
/* the data about edges, zones, and points -- boundary or not, exists
185185
* or not, z value 0, 1, or 2 -- is kept in a mesh sized data array */
186-
typedef short Cdata;
186+
// typedef short Cdata; // 16 bits display rendering
187+
typedef int Cdata; // 32 bits display rendering
187188

188189
/* information to decide on correct contour direction in saddle zones
189190
* is stored in a mesh sized array. Only those entries corresponding

0 commit comments

Comments
 (0)