mirror of
https://github.com/dyne/FreeJ.git
synced 2026-02-11 23:30:50 +01:00
added properties to screen
now screen.w and screen.h give back size and screen.initialized says if init() was succesfull plus the array layers[] contains the list of currently added layers
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// simple test for CairoLayer
|
||||
|
||||
scr = new Screen();
|
||||
if (!scr.is_initialized()) {
|
||||
if (!scr.initialized) {
|
||||
// screen hasn't been initialized yet, let's do it now
|
||||
scr.init(400,300);
|
||||
add_screen(scr);
|
||||
|
||||
Reference in New Issue
Block a user