diff pytouhou/ui/window.pyx @ 456:cae1ae9de430

Add native text support, MSG instructions 3 and 8, and text at the beginning of a stage.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Tue, 16 Jul 2013 21:11:40 +0200
parents 6864a38b2413
children 1b56d62250ab
line wrap: on
line diff
--- a/pytouhou/ui/window.pyx
+++ b/pytouhou/ui/window.pyx
@@ -97,6 +97,7 @@ cdef class Window:
             sdl.set_main_ready()
         sdl.init(sdl.INIT_VIDEO)
         sdl.img_init(sdl.INIT_PNG)
+        sdl.ttf_init()
         if sound:
             sdl.mix_init(0)
 
@@ -169,5 +170,6 @@ cdef class Window:
     def __dealloc__(self):
         sdl.mix_close_audio()
         sdl.mix_quit()
+        sdl.ttf_quit()
         sdl.img_quit()
         sdl.quit()