[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r4090 - trunk/pingus/src/editor
From: |
grumbel at BerliOS |
Subject: |
[Pingus-CVS] r4090 - trunk/pingus/src/editor |
Date: |
Mon, 30 Nov 2009 21:30:49 +0100 |
Author: grumbel
Date: 2009-11-30 21:30:49 +0100 (Mon, 30 Nov 2009)
New Revision: 4090
Modified:
trunk/pingus/src/editor/viewport.cpp
Log:
Fixed scroll bug
Modified: trunk/pingus/src/editor/viewport.cpp
===================================================================
--- trunk/pingus/src/editor/viewport.cpp 2009-11-30 20:26:23 UTC (rev
4089)
+++ trunk/pingus/src/editor/viewport.cpp 2009-11-30 20:30:49 UTC (rev
4090)
@@ -345,8 +345,8 @@
{
if (current_action == SCROLLING)
{
-
state.set_pos(Vector2i(static_cast<int>(static_cast<float>(state.get_pos().x +
(mouse_screen_pos.x - drag_screen_pos.x)) * 5.0f * delta),
-
static_cast<int>(static_cast<float>(state.get_pos().y + (mouse_screen_pos.y -
drag_screen_pos.y)) * 5.0f * delta)));
+ state.set_pos(Vector2i(state.get_pos().x +
static_cast<int>(static_cast<float>(mouse_screen_pos.x - drag_screen_pos.x) *
5.0f * delta),
+ state.get_pos().y +
static_cast<int>(static_cast<float>(mouse_screen_pos.y - drag_screen_pos.y) *
5.0f * delta)));
}
// Autoscroll if necessary
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r4090 - trunk/pingus/src/editor,
grumbel at BerliOS <=