Resize window, center number

This commit is contained in:
manzerbredes 2015-05-04 14:05:06 +02:00
parent 164d94eec1
commit a1c9b58c29
2 changed files with 2 additions and 2 deletions
src
Controllers/SFMLController
View

View file

@ -5,7 +5,7 @@
SFMLController::SFMLController() : m_game(), m_MainWindow(800,800, "2P11"){
SFMLController::SFMLController() : m_game(), m_MainWindow(600,800, "2P11"){
}

View file

@ -133,7 +133,7 @@ void MainWindow::drawCell(int x, int y, int value){
int fontX=x+(m_cellSize.x/2)-((valueSize*(fontSize-20))/2);
int fontY=y+(m_cellSize.y/2)-(fontSize/2)-10;
int fontY=y+(m_cellSize.y/2)-(fontSize/2)-9;
sf::Text text;