Skip to content

Commit

Permalink
Close button bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
CrociDB committed Aug 9, 2009
1 parent 59ba363 commit 36fdaf9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/CApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@

#include <CApp.h>

void sair()
{
// ESC! ;)
key[KEY_ESC] = true;
}END_OF_FUNCTION(sair)

void CApp::Init(int sw, int sh, char *title)
{
this->w = sw;
Expand Down Expand Up @@ -52,6 +58,9 @@ void CApp::Init(int sw, int sh, char *title)
srand(time(NULL));

CreateBuffer();

LOCK_FUNCTION(sair);
set_close_button_callback(sair);

bmpMouse = load_bitmap("../media/mouse.bmp", NULL);
}
Expand Down

0 comments on commit 36fdaf9

Please sign in to comment.