From 44081e6b1e625f5c52acf26a0336935cf99449d9 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Sat, 24 Aug 2013 22:36:40 +0300 Subject: FULLPIPE: Implement InputController::drawCursor() --- engines/fullpipe/input.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/engines/fullpipe/input.cpp b/engines/fullpipe/input.cpp index efc42b3bc9..767a0d5c44 100644 --- a/engines/fullpipe/input.cpp +++ b/engines/fullpipe/input.cpp @@ -83,7 +83,18 @@ void CInputController::setCursorMode(bool enabled) { } void CInputController::drawCursor(int x, int y) { - warning("STUB: CInputController::drawCursor(%d, %d)", x, y); + if (_cursorIndex == -1) + return; + + _cursorBounds.left = g_fullpipe->_sceneRect.left + x - _cursorsArray[_cursorIndex]->hotspotX; + _cursorBounds.top = g_fullpipe->_sceneRect.top + y - _cursorsArray[_cursorIndex]->hotspotY; + _cursorBounds.right = _cursorBounds.left + _cursorsArray[_cursorIndex]->width; + _cursorBounds.bottom = _cursorBounds.top + _cursorsArray[_cursorIndex]->height; + + _cursorsArray[_cursorIndex]->picture->draw(_cursorBounds.left, _cursorBounds.top, 0, 0); + + if (_cursorItemPicture) + _cursorItemPicture->draw(_cursorsArray[_cursorIndex]->itemPictureOffsX, _cursorsArray[_cursorIndex]->itemPictureOffsY, 0, 0); } void CInputController::setCursor(int cursorId) { -- cgit v1.2.3