Welcome to the CHICKEN Scheme pasting service

sdl-ttf function doc wants char but code wants string? added by ergodicbreak on Sun Jun 21 05:42:16 2020

(: render-glyph-solid
   (ttf:font string sdl2:color -> sdl2:surface))
(define (render-glyph-solid font glyph fg)
  (set-finalizer! (render-glyph-solid* font glyph fg) free-surface!))

(: render-glyph-solid*
   (ttf:font string sdl2:color -> sdl2:surface))
(define (render-glyph-solid* font glyph fg)
  (let* ((glyph-int (%glyph->Uint16 glyph 'render-glyph-solid*))
         (surf (TTF_RenderGlyph_Solid font glyph-int fg)))
    (if (%nonnull-surface? surf)
        surf
        (abort (sdl-failure "TTF_RenderGlyph_Solid" #f)))))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which backend storage does qwiki use?
Visually impaired? Let me spell it for you (wav file) download WAV