diff --git a/helptask.cpp b/helptask.cpp index d28616b..ea68fa7 100644 --- a/helptask.cpp +++ b/helptask.cpp @@ -26,9 +26,9 @@ void HelpTask::render() const unsigned int x = (SCREEN_WIDTH - background->width) / 2; const unsigned int y = (SCREEN_HEIGHT - background->height) / 2; drawTextureOverlay(*background, 0, 0, *screen, x, y, background->width, background->height); - drawString("Help for Crafti v1.0\n" - "\n" - "8-4-6-2: Walk around 5: Jump\n" + drawString("Help for Crafti v1.0", 0xFFFF, *screen, x, y - fontHeight()); + + drawString("8-4-6-2: Walk around 5: Jump\n" "7: Put block down 9: Destroy block\n" "1-3: Change inventory slot\n" "ESC: Save & Exit\n" @@ -39,7 +39,7 @@ void HelpTask::render() " 2-8: Move cursor\n" " 5: Select\n" "\n" - "Made by Fabian Vogt", 0xFFFF, *screen, x + 10, y - fontHeight()); + "Made by Fabian Vogt", 0xFFFF, *screen, x + 10, y + 8); } void HelpTask::logic() diff --git a/settingstask.cpp b/settingstask.cpp index cffe9c6..f5f9a32 100644 --- a/settingstask.cpp +++ b/settingstask.cpp @@ -57,12 +57,12 @@ void SettingsTask::render() { drawBackground(); - const unsigned int x = (SCREEN_WIDTH - background->width) / 2 + 5; + const unsigned int x = (SCREEN_WIDTH - background->width) / 2; unsigned int y = (SCREEN_HEIGHT - background->height) / 2; drawTextureOverlay(*background, 0, 0, *screen, x, y, background->width, background->height); drawString("Settings", 0xFFFF, *screen, x, y - fontHeight()); - y += 5; + y += 8; for(unsigned int i = 0; i < settings.size(); ++i) {