summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 129958c)
raw | patch | inline | side by side (parent: 129958c)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Sun, 4 Feb 2007 15:10:56 +0000 (15:10 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Sun, 4 Feb 2007 15:10:56 +0000 (15:10 +0000) |
index bd6a5707a064d0ffe0a44edf11b42200d90fae97..b9f962284553fea7eaffe33b98241a5ab08faf2a 100644 (file)
@@ -442,7 +442,7 @@ nr_arena_glyphs_group_render(NRArenaItem *item, NRRectL *area, NRPixBlock *pb, u
nr_pixblock_setup_fast(&m, NR_PIXBLOCK_MODE_A8, area->x0, area->y0, area->x1, area->y1, TRUE);
// if memory allocation failed, abort
- if (m.data.px == NULL) {
+ if (m.size != NR_PIXBLOCK_SIZE_TINY && m.data.px == NULL) {
nr_pixblock_release (&m);
return (item->state);
}
@@ -489,7 +489,7 @@ nr_arena_glyphs_group_render(NRArenaItem *item, NRRectL *area, NRPixBlock *pb, u
nr_pixblock_setup_fast(&m, NR_PIXBLOCK_MODE_A8, area->x0, area->y0, area->x1, area->y1, TRUE);
// if memory allocation failed, abort
- if (m.data.px == NULL) {
+ if (m.size != NR_PIXBLOCK_SIZE_TINY && m.data.px == NULL) {
nr_pixblock_release (&m);
return (item->state);
}
index e7eab8b8556d2ea8b165ef304da0acd41172b6b9..68e4d3c9ee5ef71ec8fdfdd681849fb4820d3302 100644 (file)
TRUE);
// if memory allocation failed, abort render
- if (ipb.data.px == NULL) {
+ if (ipb.size != NR_PIXBLOCK_SIZE_TINY && ipb.data.px == NULL) {
nr_pixblock_release (&ipb);
return (item->state);
}
item->background_pb->area.y0,
item->background_pb->area.x1,
item->background_pb->area.y1, true);
- if (pb->data.px == NULL) // allocation failed
+ if (pb->size != NR_PIXBLOCK_SIZE_TINY && pb->data.px == NULL) // allocation failed
return NULL;
} else if (item->parent) {
pb = nr_arena_item_get_background (item->parent, depth + 1);
index b2003b9e15b663108249c3b9a30385c06adbce8f..d539d0f139525d3d8deaf19e1eae33ee93ea312c 100644 (file)
@@ -756,7 +756,7 @@ nr_arena_shape_render(NRArenaItem *item, NRRectL *area, NRPixBlock *pb, unsigned
nr_pixblock_setup_fast(&m, NR_PIXBLOCK_MODE_A8, area->x0, area->y0, area->x1, area->y1, TRUE);
// if memory allocation failed, abort render
- if (m.data.px == NULL) {
+ if (m.size != NR_PIXBLOCK_SIZE_TINY && m.data.px == NULL) {
nr_pixblock_release (&m);
return (item->state);
}
@@ -794,7 +794,7 @@ nr_arena_shape_render(NRArenaItem *item, NRRectL *area, NRPixBlock *pb, unsigned
nr_pixblock_setup_fast(&m, NR_PIXBLOCK_MODE_A8, area->x0, area->y0, area->x1, area->y1, TRUE);
// if memory allocation failed, abort render
- if (m.data.px == NULL) {
+ if (m.size != NR_PIXBLOCK_SIZE_TINY && m.data.px == NULL) {
nr_pixblock_release (&m);
return (item->state);
}
nr_pixblock_setup_fast(&m, NR_PIXBLOCK_MODE_A8, area->x0, area->y0, area->x1, area->y1, TRUE);
// if memory allocation failed, abort
- if (m.data.px == NULL) {
+ if (m.size != NR_PIXBLOCK_SIZE_TINY && m.data.px == NULL) {
nr_pixblock_release (&m);
return (item->state);
}
index ba845d1a296b24dc0fa56de18c9ffa5f53d00932..e6d0105fbd76f1fc7f569e49278ab508f9dd98b4 100644 (file)
--- a/src/display/nr-arena.cpp
+++ b/src/display/nr-arena.cpp
@@ -111,7 +111,7 @@ nr_arena_render_paintserver_fill (NRPixBlock *pb, NRRectL *area, SPPainter *pain
nr_pixblock_setup_fast (&cb_opa, NR_PIXBLOCK_MODE_R8G8B8A8N, area->x0, area->y0, area->x1, area->y1, TRUE);
// if memory allocation failed, abort
- if (cb.data.px == NULL || cb_opa.data.px == NULL) {
+ if ((cb.size != NR_PIXBLOCK_SIZE_TINY && cb.data.px == NULL) || (cb_opa.size != NR_PIXBLOCK_SIZE_TINY && cb_opa.data.px == NULL)) {
return;
}
index 22e0aaedd812943da5b8384037f3d06f3693a44b..7187dd29e6b627245ec00ab6e382e6741200625a 100644 (file)
// set up subsampled buffers
nr_pixblock_setup_fast(bufx, in->mode, xd0, yd0, xd1, yd1, true);
nr_pixblock_setup_fast(bufy, in->mode, xd0, yd0, xd1, yd1, true);
- if (bufx->data.px == NULL || bufy->data.px == NULL) { // no memory
+ if ((bufx->size != NR_PIXBLOCK_SIZE_TINY && bufx->data.px == NULL) || (bufy->size != NR_PIXBLOCK_SIZE_TINY && bufy->data.px == NULL)) { // no memory
return 0;
}
NRPixBlock *out = new NRPixBlock;
nr_pixblock_setup_fast(out, in->mode, in->area.x0, in->area.y0,
in->area.x1, in->area.y1, true);
- if (out->data.px == NULL) {
+ if (out->size != NR_PIXBLOCK_SIZE_TINY && out->data.px == NULL) {
// alas, we've accomplished a lot, but ran out of memory - so abort
return 0;
}
index f00a1ef6b3c922183250b0d911be3f33388a40f5..a720050c989b8a74899b4fde2637b85392bdf266 100644 (file)
nr_pixblock_setup_fast(in, pb->mode,
min_x, min_y,
max_x, max_y, true);
- if (in->data.px == NULL) // memory allocation failed
+ if (in->size != NR_PIXBLOCK_SIZE_TINY && in->data.px == NULL) // memory allocation failed
return 0;
transform_nearest(in, pb, itrans);
} else if (_x_pixels >= 0) {
}
if (y_len < 1) y_len = 1;
nr_pixblock_setup_fast(in, pb->mode, 0, 0, x_len, y_len, true);
- if (in->data.px == NULL) // memory allocation failed
+ if (in->size != NR_PIXBLOCK_SIZE_TINY && in->data.px == NULL) // memory allocation failed
return 0;
scale_bicubic(in, pb);
scale res_scaling(x_len / (double)(pb->area.x1 - pb->area.x0),
nr_pixblock_setup_fast(in, pb->mode,
pb->area.x0, pb->area.y0,
pb->area.x1, pb->area.y1, true);
- if (in->data.px == NULL) // memory allocation failed
+ if (in->size != NR_PIXBLOCK_SIZE_TINY && in->data.px == NULL) // memory allocation failed
return 0;
nr_blit_pixblock_pixblock(in, pb);
}