mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +02:00
small fix
This commit is contained in:
@@ -1562,8 +1562,8 @@ void GameView::DoMouseMove(int x, int y, int dx, int dy)
|
||||
int mouseX = x;
|
||||
if(mouseX > XRES)
|
||||
mouseX = XRES;
|
||||
if (mouseX < BARSIZE+2)
|
||||
mouseX = BARSIZE+2;
|
||||
if (mouseX < 15)
|
||||
mouseX = 15;
|
||||
|
||||
scrollBar->Position.X = (int)(((float)mouseX/((float)XRES))*(float)(XRES-scrollSize));
|
||||
|
||||
|
Reference in New Issue
Block a user