}
force_transfer = 1;
break;
+ case RR_TEXTURE_NUM_TYPES:
+ g_assert_not_reached();
}
}
memset(a->texture, 0, a->textures * sizeof(RrTexture));
}
+/* deep copy of orig, means reset ref to 1 on copy
+ * and copy each thing memwise. */
RrAppearance *RrAppearanceCopy(RrAppearance *orig)
{
RrSurface *spo, *spc;
return copy;
}
+/* now decrements ref counter, and frees only if ref <= 0 */
void RrAppearanceFree(RrAppearance *a)
{
if (a) {
case RR_BEVEL_2:
*l = *t = *r = *b = 2;
break;
+ case RR_BEVEL_NUM_TYPES:
+ g_assert_not_reached();
}
} else if (a->surface.border) {
*l = *t = *r = *b = 1;
w = MAX(w, MAX(a->texture[i].data.lineart.x1 - l - r,
a->texture[i].data.lineart.x2 - l - r));
break;
+ case RR_TEXTURE_NUM_TYPES:
+ g_assert_not_reached();
}
}
h = MAX(h, MAX(a->texture[i].data.lineart.y1 - t - b,
a->texture[i].data.lineart.y2 - t - b));
break;
+ case RR_TEXTURE_NUM_TYPES:
+ g_assert_not_reached();
}
}