Commit bab53d91 authored by Florian Müllner's avatar Florian Müllner

ft-font: Fix color font support

FT_PIXEL_MODE_BGRA is an enum member, not a define, so it always appears
as 0 in the preprocessor conditions added in commit c0ed8ce1.

There is an existing define for color font support, use that instead.
parent dfe3aa6d
Pipeline #39869 failed with stage
in 5 minutes and 40 seconds
......@@ -976,7 +976,7 @@ _compute_xrender_bitmap_size(FT_Bitmap *target,
pitch = width * 4;
break;
#ifdef FT_PIXEL_MODE_BGRA
#ifdef FT_LOAD_COLOR
case FT_PIXEL_MODE_BGRA:
/* each pixel is replicated into a 32-bit ARGB value */
pitch = width * 4;
......@@ -1179,7 +1179,7 @@ _fill_xrender_bitmap(FT_Bitmap *target,
}
break;
#ifdef FT_PIXEL_MODE_BGRA
#ifdef FT_LOAD_COLOR
case FT_PIXEL_MODE_BGRA:
for (h = height; h > 0; h--, srcLine += src_pitch, dstLine += pitch)
memcpy (dstLine, srcLine, width * 4);
......@@ -1293,7 +1293,7 @@ _get_bitmap_surface (FT_Bitmap *bitmap,
component_alpha = TRUE;
}
break;
#ifdef FT_PIXEL_MODE_BGRA
#ifdef FT_LOAD_COLOR
case FT_PIXEL_MODE_BGRA:
stride = width * 4;
if (own_buffer) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment