comparison 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
comparison
equal deleted inserted replaced
455:6864a38b2413 456:cae1ae9de430
95 95
96 IF UNAME_SYSNAME == "Windows": 96 IF UNAME_SYSNAME == "Windows":
97 sdl.set_main_ready() 97 sdl.set_main_ready()
98 sdl.init(sdl.INIT_VIDEO) 98 sdl.init(sdl.INIT_VIDEO)
99 sdl.img_init(sdl.INIT_PNG) 99 sdl.img_init(sdl.INIT_PNG)
100 sdl.ttf_init()
100 if sound: 101 if sound:
101 sdl.mix_init(0) 102 sdl.mix_init(0)
102 103
103 sdl.gl_set_attribute(sdl.GL_CONTEXT_MAJOR_VERSION, 2) 104 sdl.gl_set_attribute(sdl.GL_CONTEXT_MAJOR_VERSION, 2)
104 sdl.gl_set_attribute(sdl.GL_CONTEXT_MINOR_VERSION, 1) 105 sdl.gl_set_attribute(sdl.GL_CONTEXT_MINOR_VERSION, 1)
167 168
168 169
169 def __dealloc__(self): 170 def __dealloc__(self):
170 sdl.mix_close_audio() 171 sdl.mix_close_audio()
171 sdl.mix_quit() 172 sdl.mix_quit()
173 sdl.ttf_quit()
172 sdl.img_quit() 174 sdl.img_quit()
173 sdl.quit() 175 sdl.quit()