aboutsummaryrefslogtreecommitdiff
path: root/scumm/cursor.cpp
diff options
context:
space:
mode:
authorMax Horn2004-09-18 22:26:19 +0000
committerMax Horn2004-09-18 22:26:19 +0000
commite74a3c9a2bdaead10b130e09e7a9cdf2fac17d55 (patch)
treecd03b4801ed309a36956b15018b7f9d049af14f2 /scumm/cursor.cpp
parent7b7021028676f61b0ff261c35ab8d6d5e86a118e (diff)
downloadscummvm-rg350-e74a3c9a2bdaead10b130e09e7a9cdf2fac17d55.tar.gz
scummvm-rg350-e74a3c9a2bdaead10b130e09e7a9cdf2fac17d55.tar.bz2
scummvm-rg350-e74a3c9a2bdaead10b130e09e7a9cdf2fac17d55.zip
Reduce code duplication a bit
svn-id: r15174
Diffstat (limited to 'scumm/cursor.cpp')
-rw-r--r--scumm/cursor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scumm/cursor.cpp b/scumm/cursor.cpp
index 88bc532c63..36af18967b 100644
--- a/scumm/cursor.cpp
+++ b/scumm/cursor.cpp
@@ -24,6 +24,7 @@
#include "scumm/charset.h"
#include "scumm/intern.h"
#include "scumm/object.h"
+#include "scumm/resource_v7he.h"
#include "scumm/scumm.h"
@@ -146,6 +147,10 @@ void ScummEngine::setCursorFromBuffer(byte *ptr, int width, int height, int pitc
updateCursor();
}
+void ScummEngine_v7he::setCursorFromImg(uint img, uint room, uint imgindex) {
+ _Win32ResExtractor->setCursor(img);
+}
+
void ScummEngine_v6::setCursorFromImg(uint img, uint room, uint imgindex) {
int w, h;
const byte *dataptr, *bomp;