Skip to content

Commit

Permalink
update: use wait event, increase version number
Browse files Browse the repository at this point in the history
  • Loading branch information
daelsepara committed Aug 15, 2024
1 parent e761155 commit b247975
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/amd64/debian/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: heart-of-ice
Version: 1.0.3
Version: 1.0.4
Maintainer: Dael Separa <dael.separa@gmail.com>
Architecture: amd64
Description: Heart of Ice (SDL)
Expand Down
4 changes: 2 additions & 2 deletions src/input.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ namespace Input

while (1)
{
SDL_PollEvent(&result);
SDL_WaitEvent(&result);

if (result.type == SDL_QUIT)
{
Expand Down Expand Up @@ -341,7 +341,7 @@ namespace Input

while (1)
{
SDL_PollEvent(&result);
SDL_WaitEvent(&result);

if (result.type == SDL_QUIT)
{
Expand Down

0 comments on commit b247975

Please sign in to comment.