small fix
This commit is contained in:
parent
b45a45ba4e
commit
4f2d24bcff
@ -1562,8 +1562,8 @@ void GameView::DoMouseMove(int x, int y, int dx, int dy)
|
|||||||
int mouseX = x;
|
int mouseX = x;
|
||||||
if(mouseX > XRES)
|
if(mouseX > XRES)
|
||||||
mouseX = XRES;
|
mouseX = XRES;
|
||||||
if (mouseX < BARSIZE+2)
|
if (mouseX < 15)
|
||||||
mouseX = BARSIZE+2;
|
mouseX = 15;
|
||||||
|
|
||||||
scrollBar->Position.X = (int)(((float)mouseX/((float)XRES))*(float)(XRES-scrollSize));
|
scrollBar->Position.X = (int)(((float)mouseX/((float)XRES))*(float)(XRES-scrollSize));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user