fixed problem where slamming screen against right side...
...and holding down right cursor key would cause hexes to shift around
This commit is contained in:
parent
8718b79aa2
commit
2647dcdec6
1 changed files with 8 additions and 1 deletions
|
@ -234,9 +234,16 @@ void display::scroll(double xmove, double ymove)
|
|||
ypos_ += ymove;
|
||||
bounds_check_position();
|
||||
|
||||
if(int(util::round(xpos_)) == int(util::round(orig_x)))
|
||||
xpos_ = orig_x;
|
||||
|
||||
if(int(util::round(ypos_)) == int(util::round(orig_y)))
|
||||
ypos_ = orig_y;
|
||||
|
||||
//only invalidate if we've actually moved
|
||||
if(orig_x != xpos_ || orig_y != ypos_)
|
||||
if(orig_x != xpos_ || orig_y != ypos_) {
|
||||
invalidate_all();
|
||||
}
|
||||
}
|
||||
|
||||
void display::zoom(double amount)
|
||||
|
|
Loading…
Add table
Reference in a new issue