Skip to content
Snippets Groups Projects
Verified Commit b39fb709 authored by Clayton Craft's avatar Clayton Craft
Browse files

toggle: fix text not showing up in some cases (MR 148)

Width/height were accidentally swapped when initializing the keyboard
toggle, causing the text position calculation to be wrong and resulting
in the text not being displayed on the toggle surface. Oops.
parent 1cce3c98
No related branches found
No related tags found
No related merge requests found
......@@ -251,7 +251,7 @@ int main(int argc, char **args)
}
// Initialize toggle button for keyboard
Toggle keyboardToggle(HEIGHT/15, WIDTH/10, &config);
Toggle keyboardToggle(WIDTH/10, HEIGHT/15, &config);
if (keyboardToggle.init(renderer, "osk")) {
SDL_LogError(SDL_LOG_CATEGORY_VIDEO, "Failed to initialize keyboardToggle!");
exit(EXIT_FAILURE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment