projects
/
mancala
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use hgw_context_destroy with HGW_BYE_INACTIVE to indicate game is closed
[mancala]
/
src
/
callbacks.c
diff --git
a/src/callbacks.c
b/src/callbacks.c
index
0b0e6cf
..
cbfe07d
100644
(file)
--- a/
src/callbacks.c
+++ b/
src/callbacks.c
@@
-32,18
+32,20
@@
// Pause the game
int exit_callback(int errcode) {
// Pause the game
int exit_callback(int errcode) {
- printf("exit_callback called...\n");
+ printf("exit_callback called...\n");
+ hgw_context_destroy(hgw_context, HGW_BYE_INACTIVE);
return 0;
}
// Quit game
int quit_callback(int errcode) {
return 0;
}
// Quit game
int quit_callback(int errcode) {
- printf("quit_callback called...\n");
- hgw_context_compat_destroy_quit(hgw_context);
+ printf("quit_callback called...\n");
+ hgw_context_destroy(hgw_context, HGW_BYE_INACTIVE);
return 0;
}
int flush_callback(int errcode) {
return 0;
}
int flush_callback(int errcode) {
- printf("quit_callback called...\n");
+ printf("quit_callback called...\n");
+ hgw_context_destroy(hgw_context, HGW_BYE_INACTIVE);
return 0;
}
return 0;
}