RrVisual(l->inst),
RrColormap(l->inst));
}
- font_draw(l->xftdraw, &l->texture[i].data.text, &tarea);
+ RrFontDraw(l->xftdraw, &l->texture[i].data.text, &tarea);
break;
case RR_TEXTURE_MASK:
if (!transferred) {
RrPixel32_to_pixmap(l, 0, 0, w, h);
}
if (l->texture[i].data.mask.color->gc == None)
- color_allocate_gc(l->texture[i].data.mask.color);
+ RrColorAllocateGC(l->texture[i].data.mask.color);
RrPixmapMaskDraw(l->pixmap, &l->texture[i].data.mask, &tarea);
break;
case RR_TEXTURE_RGBA:
- image_draw(l->surface.RrPixel_data,
- &l->texture[i].data.rgba, &tarea);
+ RrImageDraw(l->surface.RrPixel_data,
+ &l->texture[i].data.rgba, &tarea);
break;
}
}
in = l->surface.RrPixel_data;
out = l->pixmap;
- im->byte_order = render_endian;
+ im->byte_order = RrEndian;
/* this malloc is a complete waste of time on normal 32bpp
as reduce_depth just sets im->data = data and returns
*/
scratch = g_new(RrPixel32, im->width * im->height);
im->data = (char*) scratch;
- reduce_depth(l->inst, in, im);
+ RrReduceDepth(l->inst, in, im);
XPutImage(RrDisplay(l->inst), out,
DefaultGC(RrDisplay(l->inst), RrScreen(l->inst)),
im, 0, 0, x, y, w, h);
*h = MAX(*h, l->texture[i].data.mask.mask->height);
break;
case RR_TEXTURE_TEXT:
- m = font_measure_string(l->texture[i].data.text.font,
+ m = RrFontMeasureString(l->texture[i].data.text.font,
l->texture[i].data.text.string,
l->texture[i].data.text.shadow,
l->texture[i].data.text.offset);
*w = MAX(*w, m);
- m = font_height(l->texture[i].data.text.font,
- l->texture[i].data.text.shadow,
- l->texture[i].data.text.offset);
+ m = RrFontHeight(l->texture[i].data.text.font,
+ l->texture[i].data.text.shadow,
+ l->texture[i].data.text.offset);
*h += MAX(*h, m);
break;
case RR_TEXTURE_RGBA:
}
*data = g_new(RrPixel32, pw * ph);
- increase_depth(inst, *data, xi);
+ RrIncreaseDepth(inst, *data, xi);
if (mask) {
/* apply transparency from the mask */
for (i = 0, y = 0; y < ph; ++y) {
for (x = 0; x < pw; ++x, ++i) {
if (!((((unsigned)xm->data[di + x / 8]) >> (x % 8)) & 0x1))
- (*data)[i] &= ~(0xff << default_alpha_offset);
+ (*data)[i] &= ~(0xff << RrDefaultAlphaOffset);
}
di += xm->bytes_per_line;
}