Hi,

I think there is a small bug in:

 src/core/gfxcard.c:

2660      /* simple prechecks */
2661      if (!(state->render_options & DSRO_MATRIX) &&
2662          (x > state->clip.x2 || y > state->clip.y2 + font->ascender ||
2663           y - font->descender <= state->clip.y1)) {
2664           return;
2665      }

the check above doesn't take into account the fact that "y" may get modified
by the code below.

 src/display/idirectfbsurface.c

2327      if (!(flags & DSTF_TOP)) {
2328           x += core_font->ascender * core_font->up_unit_x;
2329           y += core_font->ascender * core_font->up_unit_y;
2330
2331           if (flags & DSTF_BOTTOM) {
2332                x -= core_font->descender * core_font->up_unit_x;
2333                y -= core_font->descender * core_font->up_unit_y;
2334           }
2335      }

this has been introduced by the following commit:
http://git.directfb.org/?p=core/DirectFB.git;a=commit;h=3a9360cb003f605be22134b54eeeee1858d727bd

if needed I can provide a test to reproduce the error.

regards.
Haithem.

-- 
*
"If you ask a question - you will be a fool for 5 minutes, otherwise
ignorant for rest of your life"
*
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to