summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/GameController.cpp2
-rw-r--r--src/game/GameView.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/game/GameController.cpp b/src/game/GameController.cpp
index ea21fd1..2ca447d 100644
--- a/src/game/GameController.cpp
+++ b/src/game/GameController.cpp
@@ -560,6 +560,8 @@ void GameController::Update()
ui::Point pos = gameView->GetMousePosition();
if(pos.X >= 0 && pos.Y >= 0 && pos.X < XRES && pos.Y < YRES)
{
+ gameModel->GetRenderer()->mousePosX = pos.X;
+ gameModel->GetRenderer()->mousePosY = pos.Y;
gameView->SetSample(gameModel->GetSimulation()->Get(pos.X, pos.Y));
}
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp
index c9c293d..d0fde06 100644
--- a/src/game/GameView.cpp
+++ b/src/game/GameView.cpp
@@ -1289,7 +1289,7 @@ void GameView::NotifyNotificationsChanged(GameModel * sender)
std::vector<Notification*> notifications = sender->GetNotifications();
- int currentY = YRES-17;
+ int currentY = YRES-23;
for(std::vector<Notification*>::iterator iter = notifications.begin(), end = notifications.end(); iter != end; ++iter)
{
int width = (Graphics::textwidth((*iter)->Message.c_str()))+8;