From bff6dedd4820fd14675bafd684a24c0700b952be Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 10 Oct 2015 00:34:27 -0400 Subject: [PATCH] show cursor when drawing even when mouse is out of bounds --- src/gui/game/GameView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index 44b203413..a3ea62018 100644 --- a/src/gui/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -2043,7 +2043,7 @@ void GameView::OnDraw() ren->clearScreen(1.0f); ren->RenderBegin(); ren->SetSample(c->PointTranslate(currentMouse).X, c->PointTranslate(currentMouse).Y); - if(selectMode == SelectNone && (!zoomEnabled || zoomCursorFixed) && activeBrush && currentMouse.X >= 0 && currentMouse.X < XRES && currentMouse.Y >= 0 && currentMouse.Y < YRES) + if(selectMode == SelectNone && (!zoomEnabled || zoomCursorFixed) && activeBrush && (isMouseDown || (currentMouse.X >= 0 && currentMouse.X < XRES && currentMouse.Y >= 0 && currentMouse.Y < YRES))) { ui::Point finalCurrentMouse = c->PointTranslate(currentMouse); ui::Point initialDrawPoint = drawPoint1;