X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsumhack.cpp;h=5702001ba98bacb289aca6cb18ab9ce1cf44a61c;hb=b876a410e81ae58568e263fe2785f0b1a55002ef;hp=75c6fa3d7b3652b30e70836ad08e081d292baaba;hpb=a80992973feb47adfc1214ad1a3f7fc34eb345c0;p=summerhack diff --git a/src/sumhack.cpp b/src/sumhack.cpp index 75c6fa3..5702001 100644 --- a/src/sumhack.cpp +++ b/src/sumhack.cpp @@ -7,7 +7,9 @@ #include "common/err_msg.h" #include "parts/parts.hpp" #include "events.hpp" +#ifndef NO_MUSIC #include "sdlvf/sdlvf.h" +#endif using namespace std; @@ -88,10 +90,10 @@ bool init() { } if(gip->fullscreen) { - SDL_ShowCursor(0); + fxwt::show_cursor(false); } - fxwt::set_window_title("The Lab Demos :: Summer Hack"); + fxwt::set_window_title("The Lab Demos :: Summer Hack (rebuild)"); fxwt::set_display_handler(update_gfx); fxwt::set_idle_handler(update_gfx); fxwt::set_keyboard_handler(key_handler); @@ -102,6 +104,7 @@ bool init() { //dsys::init(); // show loading screen + glClear(GL_COLOR_BUFFER_BIT); dsys::overlay(get_texture("data/img/loading.jpg"), Vector2(0, 0), Vector2(1, 1), 1.0); flip(); @@ -139,24 +142,28 @@ bool init() { dsys::render_demo(render_fps, render_path); } +#ifndef NO_MUSIC if(music) { sdlvf_init("data/music/red_herring.ogg"); } +#endif timer_reset(&timer); timer_start(&timer); - + return true; } void clean_up() { unsigned long time = timer_getmsec(&timer); - + +#ifndef NO_MUSIC if(music) { sdlvf_done(); } +#endif - SDL_ShowCursor(1); + fxwt::show_cursor(true); for(size_t i=0; i