Page 1 of 1

Hello_font bug?

Posted: Tue Dec 04, 2012 2:13 pm
by Otto
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?

Re: Hello_font bug?

Posted: Mon Aug 04, 2014 5:09 am
by Chinasaur