Skip to content

Commit

Permalink
Minor bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
otidev committed Dec 27, 2023
1 parent 696f410 commit b8f6dbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h2>Images</h2>
<img src="bible2.png" alt="Photo featuring Genesis 1 16">

<p>
Download here!
Download coming soon!
</p>

<p>
Expand Down
8 changes: 3 additions & 5 deletions src/Window.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,9 @@ bool WindowIsOpen() {
}
}
} if (globalWindow->event.key.keysym.sym == SDLK_v) {
if (strlen(globalWindow->textInput) > 0) {
if (globalWindow->keys[SDL_SCANCODE_LCTRL] || globalWindow->keys[SDL_SCANCODE_RCTRL]) {
if ((strlen(SDL_GetClipboardText()) + strlen(globalWindow->textInput)) <= 500)
strcat(globalWindow->textInput, SDL_GetClipboardText());
}
if (globalWindow->keys[SDL_SCANCODE_LCTRL] || globalWindow->keys[SDL_SCANCODE_RCTRL]) {
if ((strlen(SDL_GetClipboardText()) + strlen(globalWindow->textInput)) <= 500)
strcat(globalWindow->textInput, SDL_GetClipboardText());
}
}
break;
Expand Down

0 comments on commit b8f6dbd

Please sign in to comment.