Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed undefined key access in test program.
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
test/testdrawchessboard.c
|
@@ -68,7 +68,7 @@ loop() |
|
|
return; |
|
|
} |
|
|
|
|
|
if(e.key.keysym.sym == SDLK_ESCAPE) { |
|
|
if ((e.type == SDL_KEYDOWN) && (e.key.keysym.sym == SDLK_ESCAPE)) { |
|
|
done = 1; |
|
|
#ifdef __EMSCRIPTEN__ |
|
|
emscripten_cancel_main_loop(); |
|
|