Hello_font bug?
Posted: Tue Dec 04, 2012 2:13 pm
Possibly found a bug within this code in Hello_font:
s = graphics_resource_render_text_ext(img, (img_w - width)>>1, y_offset-height,
GRAPHICS_RESOURCE_WIDTH,
GRAPHICS_RESOURCE_HEIGHT,
GRAPHICS_RGBA32(0xff,0xff,0xff,0xff), /* fg */
GRAPHICS_RGBA32(0,0,0,0x80), /* bg */
split, text_length-(split-text), text_size);
if (s!=0) return s;
Correctly renders text foreground, but the background width/height is not rendered/calculated correctly.
Also the background attributes seem to be BGR.
Any ideas? Dom?
s = graphics_resource_render_text_ext(img, (img_w - width)>>1, y_offset-height,
GRAPHICS_RESOURCE_WIDTH,
GRAPHICS_RESOURCE_HEIGHT,
GRAPHICS_RGBA32(0xff,0xff,0xff,0xff), /* fg */
GRAPHICS_RGBA32(0,0,0,0x80), /* bg */
split, text_length-(split-text), text_size);
if (s!=0) return s;
Correctly renders text foreground, but the background width/height is not rendered/calculated correctly.
Also the background attributes seem to be BGR.
Any ideas? Dom?