Factory is now used also for Screens

Screen API changed a bit: now size args are taken from init(w,h)
screen implementations should provide an _init(w,h) as well
constructors are without arguments (as in the rest of freej)
This commit is contained in:
Jaromil
2009-08-29 11:49:06 +02:00
parent c6de2738f8
commit b409820950
20 changed files with 164 additions and 84 deletions
+2 -1
View File
@@ -9,7 +9,8 @@ import sys
cx = freej.Context()
cx.init()
#cx.init(400,300,0,0)
scr = freej.SdlScreen( 400, 300)
scr = freej.SdlScreen()
scr.init( 400, 300 );
cx.add_screen(scr)
cx.config_check("keyboard.js")
cx.plugger.refresh(cx)