184
183
/* Guard the insertion if needed? */
185
184
RE_APixstrExt* apn = &APixbufExt[apteller];
185
int all_subpixels= 0; // not used now... (ton)
188
189
if(apn->t[0] == RE_NONE) {
189
190
apn->p[0] = obindex; apn->t[0] = obtype;
190
191
apn->zmin[0] = dist; apn->zmax[0] = dist;
191
192
apn->mask[0] = mask;
194
#ifndef RE_INDIVIDUAL_SUBPIXELS
195
if((apn->p[0] == obindex) && (apn->t[0] & obtype)) {
196
if(dist < apn->zmin[0]) apn->zmin[0] = dist;
197
else if(dist > apn->zmax[0]) apn->zmax[0] = dist;
195
else if(all_subpixels==0) {
196
if((apn->p[0] == obindex) && (apn->t[0] & obtype)) {
197
if(dist < apn->zmin[0]) apn->zmin[0] = dist;
198
else if(dist > apn->zmax[0]) apn->zmax[0] = dist;
202
204
if(apn->t[1] == RE_NONE) {
203
205
apn->p[1] = obindex; apn->t[1] = obtype;
204
206
apn->zmin[1] = dist; apn->zmax[1] = dist;
205
207
apn->mask[1] = mask;
208
#ifndef RE_INDIVIDUAL_SUBPIXELS
209
if((apn->p[1] == obindex) && (apn->t[1] & obtype)) {
210
if(dist < apn->zmin[1]) apn->zmin[1] = dist;
211
else if(dist > apn->zmax[1]) apn->zmax[1] = dist;
210
else if(all_subpixels==0) {
211
if((apn->p[1] == obindex) && (apn->t[1] & obtype)) {
212
if(dist < apn->zmin[1]) apn->zmin[1] = dist;
213
else if(dist > apn->zmax[1]) apn->zmax[1] = dist;
216
219
if(apn->t[2] == RE_NONE) {
217
220
apn->p[2] = obindex; apn->t[2] = obtype;
218
221
apn->zmin[2] = dist; apn->zmax[2] = dist;
219
222
apn->mask[2] = mask;
222
#ifndef RE_INDIVIDUAL_SUBPIXELS
223
if((apn->p[2] == obindex) && (apn->t[2] & obtype)) {
224
if(dist < apn->zmin[2]) apn->zmin[2] = dist;
225
else if(dist > apn->zmax[2]) apn->zmax[2] = dist;
225
else if(all_subpixels==0) {
226
if((apn->p[2] == obindex) && (apn->t[2] & obtype)) {
227
if(dist < apn->zmin[2]) apn->zmin[2] = dist;
228
else if(dist > apn->zmax[2]) apn->zmax[2] = dist;
230
234
if(apn->t[3] == RE_NONE) {
231
235
apn->p[3] = obindex; apn->t[3] = obtype;
232
236
apn->zmin[3] = dist; apn->zmax[3] = dist;
233
237
apn->mask[3] = mask;
236
#ifndef RE_INDIVIDUAL_SUBPIXELS
237
if((apn->p[3] == obindex) && (apn->t[3] & obtype)) {
238
if(dist < apn->zmin[3]) apn->zmin[3] = dist;
239
else if(dist > apn->zmax[3]) apn->zmax[3] = dist;
240
else if(all_subpixels==0) {
241
if((apn->p[3] == obindex) && (apn->t[3] & obtype)) {
242
if(dist < apn->zmin[3]) apn->zmin[3] = dist;
243
else if(dist > apn->zmax[3]) apn->zmax[3] = dist;
244
249
if(apn->next==0) apn->next= addpseA();
247
} /* end of insertObject(RE_APixstrExt*, int, int, int, int) */
249
/* ------------------------------------------------------------------------- */
251
void insertFlatObject(RE_APixstrExt *apn, int obindex, int obtype, int dist, int mask)
254
if(apn->t[0] == RE_NONE) {
255
apn->p[0] = obindex; apn->zmin[0] = dist;
256
apn->zmax[0] = dist; apn->mask[0] = mask;
260
#ifndef RE_INDIVIDUAL_SUBPIXELS
261
if( (apn->t[0] & obtype) && (apn->p[0] == obindex)) {
262
apn->mask[0]|= mask; break;
265
if(apn->t[1] == RE_NONE) {
266
apn->p[1] = obindex; apn->zmin[1] = dist;
267
apn->zmax[1] = dist; apn->mask[1] = mask;
271
#ifndef RE_INDIVIDUAL_SUBPIXELS
272
if( (apn->t[1] & obtype) && (apn->p[1] == obindex)) {
273
apn->mask[1]|= mask; break;
276
if(apn->t[2] == RE_NONE) {
277
apn->p[2] = obindex; apn->zmin[2] = dist;
278
apn->zmax[2] = dist; apn->mask[2] = mask;
282
#ifndef RE_INDIVIDUAL_SUBPIXELS
283
if( (apn->t[2] & obtype) && (apn->p[2] == obindex)) {
284
apn->mask[2]|= mask; break;
287
if(apn->t[3] == RE_NONE) {
288
apn->p[3] = obindex; apn->zmin[3] = dist;
289
apn->zmax[3] = dist; apn->mask[3] = mask;
293
#ifndef RE_INDIVIDUAL_SUBPIXELS
294
if( (apn->t[3] & obtype) && (apn->p[3] == obindex)) {
295
apn->mask[3]|= mask; break;
298
if(apn->next==0) apn->next= addpseA();
301
} /* end of void insertFlatObject(RE_APixstrExt, int, int, int, int)*/
303
/* ------------------------------------------------------------------------- */
254
/* ------------------------------------------------------------------------- */
256
/* ------------------------------------------------------------------------- */
304
258
/* This function might be helped by an end-of-list marker */
305
259
void insertFlatObjectNoOsa(RE_APixstrExt *ap,