Skip to content

Commit

Permalink
Fix margins on Settings and Help
Browse files Browse the repository at this point in the history
  • Loading branch information
Vogtinator committed Jun 2, 2014
1 parent 1897c05 commit 4bca054
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions helptask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions settingstask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 4bca054

Please sign in to comment.