aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
diff options
context:
space:
mode:
authorMatthew Hoops2010-01-27 16:54:58 +0000
committerMatthew Hoops2010-01-27 16:54:58 +0000
commit12569a5f325b2cdbcf3d696329a105ef5b94fd8a (patch)
tree238d55cb88cb134aaae841ea2af36428f2bef045 /engines/sci/graphics
parent1ddcd178c206889f051bc07ae7fd8d4ef9368233 (diff)
downloadscummvm-rg350-12569a5f325b2cdbcf3d696329a105ef5b94fd8a.tar.gz
scummvm-rg350-12569a5f325b2cdbcf3d696329a105ef5b94fd8a.tar.bz2
scummvm-rg350-12569a5f325b2cdbcf3d696329a105ef5b94fd8a.zip
Only reshow the cursor after playing a video if it was originally showing beforehand. This fixes the GK1 demo menu.
svn-id: r47602
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r--engines/sci/graphics/gui.cpp4
-rw-r--r--engines/sci/graphics/gui.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/engines/sci/graphics/gui.cpp b/engines/sci/graphics/gui.cpp
index 31716979a9..74e3e37659 100644
--- a/engines/sci/graphics/gui.cpp
+++ b/engines/sci/graphics/gui.cpp
@@ -788,6 +788,10 @@ void SciGui::showCursor() {
_cursor->show();
}
+bool SciGui::isCursorVisible() {
+ return _cursor->isVisible();
+}
+
void SciGui::setCursorShape(GuiResourceId cursorId) {
_cursor->setShape(cursorId);
}
diff --git a/engines/sci/graphics/gui.h b/engines/sci/graphics/gui.h
index 56905619f8..e77d24c8ce 100644
--- a/engines/sci/graphics/gui.h
+++ b/engines/sci/graphics/gui.h
@@ -132,6 +132,7 @@ public:
void hideCursor();
void showCursor();
+ bool isCursorVisible();
void setCursorShape(GuiResourceId cursorId);
void setCursorView(GuiResourceId viewNum, int loopNum, int cellNum, Common::Point *hotspot);
virtual void setCursorPos(Common::Point pos);