Bug with SDL:RENDER-STRING-BLENDED
Nicolas Martyanoff <khaelin@...
2010-07-05 13:25:07 GMT
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
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
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*)
(pkhuong idea on #lisp: replacing it by (or surface