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:
Dave White 2003-11-14 15:54:21 +00:00
parent 8718b79aa2
commit 2647dcdec6

View file

@ -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)