From 75ffb4d9c7a7a22ddf472735073815f68c763cd4 Mon Sep 17 00:00:00 2001 From: Christian Klinger Date: Fri, 22 Apr 2016 17:07:24 +0200 Subject: determine grid size based on the loaded room config. --- src/server/mainwindow/mainwindow.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/server/mainwindow/mainwindow.h') diff --git a/src/server/mainwindow/mainwindow.h b/src/server/mainwindow/mainwindow.h index a4c73a2..9cbec70 100644 --- a/src/server/mainwindow/mainwindow.h +++ b/src/server/mainwindow/mainwindow.h @@ -40,9 +40,8 @@ private: QLabel *_sessionNameLabel; int _tbIconSize; Qt::ToolBarArea _tbArea; - int _tileWidth, _tileHeight; - static const int _tilesX = 9; - static const int _tilesY = 7; + int _tilesX; + int _tilesY; // Button block stuff QTimer *_buttonLockTimer; @@ -84,6 +83,8 @@ private: void resizeEvent(QResizeEvent *e); void mouseReleaseEvent(QMouseEvent* e); + int getTileWidthPx() const; + int getTileHeightPx() const; protected slots: void onTutorListDownloaded(QByteArray& tutorList); -- cgit v1.2.3-55-g7522