Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbid authored Jan 30, 2024
1 parent 83e3316 commit fd61b68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,8 @@ int main(int argc, char *args[])
{
SDL_GetRelativeMouseState(&rx, &ry);
SDL_SetRelativeMouseMode(SDL_FALSE);
const Sint32 hh = dial_rect[selected_dial].h/2; // no point making this static
SDL_WarpMouseInWindow(window, dial_rect[selected_dial].x+hh, dial_rect[selected_dial].y+hh);
selected_dial = -1;
doSynth(0);
render(screen);
Expand Down

0 comments on commit fd61b68

Please sign in to comment.