Correct return value type in handle_event
handle_event return the type enum event_result not bool Signed-off-by: Yu-Chen Lin <npes87184@gmail.com>
This commit is contained in:
parent
c2cef8d501
commit
2a8a3e6ed5
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ handle_event(SDL_Event *event, bool control) {
|
||||||
screen_show_window(&screen);
|
screen_show_window(&screen);
|
||||||
}
|
}
|
||||||
if (!screen_update_frame(&screen, &video_buffer)) {
|
if (!screen_update_frame(&screen, &video_buffer)) {
|
||||||
return false;
|
return EVENT_RESULT_CONTINUE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SDL_WINDOWEVENT:
|
case SDL_WINDOWEVENT:
|
||||||
|
|
Loading…
Reference in a new issue