Resize window, center number
This commit is contained in:
parent
164d94eec1
commit
a1c9b58c29
2 changed files with 2 additions and 2 deletions
src
|
@ -5,7 +5,7 @@
|
|||
|
||||
|
||||
|
||||
SFMLController::SFMLController() : m_game(), m_MainWindow(800,800, "2P11"){
|
||||
SFMLController::SFMLController() : m_game(), m_MainWindow(600,800, "2P11"){
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue