- printf("current video mode: %dx%d %dbpp\n", xsz, ysz, depth);
+ fbgfx_get_video_mode(&xsz, &ysz, &depth);
+ if(depth != 16) {
+ goto end;
+ }
+ if(fbev_init() == -1) {
+ goto end;
+ }
+ fbev_keyboard(keyboard, 0);
+ fbev_mbutton(mouse, 0);
+ fbev_mmotion(motion, 0);
+
+ if(init_tunnel(xsz, ysz) == -1) {
+ goto end;
+ }