Capture the cursor while dragging, oops.

This commit is contained in:
Unknown W. Brackets
2013-10-06 15:12:46 -07:00
parent 0c03dc2dec
commit 6e3c741d83
+2
View File
@@ -323,6 +323,7 @@ bool SimpleGLWindow::DragStart(int mouseX, int mouseY) {
}
dragging_ = true;
SetCapture(hWnd_);
dragStartX_ = mouseX - offsetX_;
dragStartY_ = mouseY - offsetY_;
dragLastUpdate_ = GetTickCount();
@@ -352,6 +353,7 @@ bool SimpleGLWindow::DragEnd(int mouseX, int mouseY) {
}
dragging_ = false;
ReleaseCapture();
Redraw();
return true;