Bug with SDL:RENDER-STRING-BLENDED
Nicolas Martyanoff <
khaelin@...>
2010-07-05 13:25:07 GMT
Hi,
I may have found a bug with the RENDER-STRING-BLENDED method, when used
with a TTF font.
For the following tests, SDL:*DEFAULT-FONT* is bound to a TTF-FONT
instance.
While I have no problem with SDL:DRAW-STRING-BLENDED, using
SDL:RENDER-STRING-BLENDED returns a NIL surface.
By adding FORMAT forms to the lispbuilder libraries, I saw that calling
SDL:RENDER-STRING-BLENDED on a TTF-FONT instance calls
SDL:_RENDER-STRING-BLENDED_ which returns NIL (instead of calling
SDL-TTF:_RENDER-STRING-BLENDED_ which is correctly called for
SDL:DRAW-STRING-BLENDED).
While reading this code, I also found out in string-blended.lisp, line
66, the following form:
(if surface surface *default-display*)
Maybe it should be:
(if surface surface *default-surface*)
Right ?
(pkhuong idea on #lisp: replacing it by (or surface
*default-surface*) :))
Regards,
--
--
Nicolas Martyanoff
http://codemore.org
khaelin@...