diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-12-28 13:48:58 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2004-12-28 13:48:58 +0000 |
commit | 42e227d7f1523a5c11fd6fe3babd869f9041cce9 (patch) | |
tree | b3a3f463845fb3dae5626ecab9d47ac407d21aa7 /src/game.cpp | |
parent | abb51426f88797f0fe292e8f85d3f0794f4d41ab (diff) | |
download | mana-42e227d7f1523a5c11fd6fe3babd869f9041cce9.tar.gz mana-42e227d7f1523a5c11fd6fe3babd869f9041cce9.tar.bz2 mana-42e227d7f1523a5c11fd6fe3babd869f9041cce9.tar.xz mana-42e227d7f1523a5c11fd6fe3babd869f9041cce9.zip |
Simplified graphic engine
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game.cpp b/src/game.cpp index 104a1b84..b66b863f 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -97,20 +97,20 @@ short get_elapsed_time(short start_time) { void game() { status("INIT"); do_init(); - init_graphic(); + //init_graphic(); + GraphicEngine *graphicEngine = new GraphicEngine(); while(state!=EXIT) { status("INPUT"); do_input(); status("GRAPHIC"); - do_graphic(); + graphicEngine->refresh(); status("PARSE"); do_parse(); status("FLUSH"); flush(); } - exit_graphic(); close_session(); } @@ -226,7 +226,7 @@ void do_input() { } if (key[KEY_F1]) { - save_bitmap("./data/graphic/screenshot.bmp", vpage[page_num], NULL); + save_bitmap("./data/graphic/screenshot.bmp", buffer, NULL); } else if (key[KEY_F12]){ sound.SetAdjVol( 1, 1, 1); } else if (key[KEY_F11]){ |