aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeNew.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2006-05-18 01:36:06 +0000
committerEugene Sandulenko2006-05-18 01:36:06 +0000
commit71e341ba39758379a80fe47a2e9e61ce85e7605d (patch)
treec3f26dfb500d1816c7b6ac704e0deae60b9346a0 /gui/ThemeNew.cpp
parent9103ddda4e5b70f106ea0a0e56d59c90fc7bbcb8 (diff)
downloadscummvm-rg350-71e341ba39758379a80fe47a2e9e61ce85e7605d.tar.gz
scummvm-rg350-71e341ba39758379a80fe47a2e9e61ce85e7605d.tar.bz2
scummvm-rg350-71e341ba39758379a80fe47a2e9e61ce85e7605d.zip
Better cursor image
svn-id: r22507
Diffstat (limited to 'gui/ThemeNew.cpp')
-rw-r--r--gui/ThemeNew.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/gui/ThemeNew.cpp b/gui/ThemeNew.cpp
index 27fe15a673..98287312e8 100644
--- a/gui/ThemeNew.cpp
+++ b/gui/ThemeNew.cpp
@@ -38,7 +38,7 @@
#define kShadowTr3 64
#define kShadowTr4 128
-#define THEME_VERSION 10
+#define THEME_VERSION 11
using Graphics::Surface;
@@ -248,6 +248,8 @@ _lastUsedBitMask(0), _forceRedraw(false), _fonts(), _imageHandles(0), _images(0)
getExtraValueFromConfig(_configFile, "cursor_hotspot_x", _cursorHotspotX, 0);
getExtraValueFromConfig(_configFile, "cursor_hotspot_y", _cursorHotspotY, 0);
+
+ getExtraValueFromConfig(_configFile, "cursor_targetScale", _cursorTargetScale, 1);
// inactive dialog shading stuff
_dialogShadingCallback = 0;
@@ -300,7 +302,7 @@ _lastUsedBitMask(0), _forceRedraw(false), _fonts(), _imageHandles(0), _images(0)
_lastUsedBitMask = gBitFormat;
- // creats the cursor image
+ // creates cursor image
if (_system->hasFeature(OSystem::kFeatureCursorHasPalette)) {
createCursor();
}
@@ -334,6 +336,7 @@ bool ThemeNew::init() {
_initOk = true;
clearAll();
setupFonts();
+ setUpCursor();
resetDrawArea();
}
@@ -1506,7 +1509,7 @@ OverlayColor ThemeNew::calcDimColor(OverlayColor col) {
void ThemeNew::setUpCursor() {
_system->setCursorPalette(_cursorPal, 0, MAX_CURS_COLORS);
- _system->setMouseCursor(_cursor, _cursorWidth, _cursorHeight, _cursorHotspotX, _cursorHotspotY);
+ _system->setMouseCursor(_cursor, _cursorWidth, _cursorHeight, _cursorHotspotX, _cursorHotspotY, 255, _cursorTargetScale);
_system->disableCursorPalette(false);
}