aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/PalmOS/Src/os5_mouse.cpp
diff options
context:
space:
mode:
authorChris Apers2009-03-01 10:25:33 +0000
committerChris Apers2009-03-01 10:25:33 +0000
commit3e56c3a40973d89c0ae6f95d46d2f982becdde1a (patch)
tree8b9d203bac9216dfd2a528e3b47701caa69629ac /backends/platform/PalmOS/Src/os5_mouse.cpp
parentfdb9cd9ce2c560486a62d959efdaa8519919e279 (diff)
downloadscummvm-rg350-3e56c3a40973d89c0ae6f95d46d2f982becdde1a.tar.gz
scummvm-rg350-3e56c3a40973d89c0ae6f95d46d2f982becdde1a.tar.bz2
scummvm-rg350-3e56c3a40973d89c0ae6f95d46d2f982becdde1a.zip
PalmOS Backend updates:
- Removed old clearScreen backend method and keep it for internal use only - Fixed save path with missing end slash - Added use of the new audio mixer - Added new file system factory - Added missing getOverlayWidth/Height - Changed color encoding from int16 to uint16 as required by the new ScummVM code - Fixed ColorMasks use with missing namespace svn-id: r39028
Diffstat (limited to 'backends/platform/PalmOS/Src/os5_mouse.cpp')
-rw-r--r--backends/platform/PalmOS/Src/os5_mouse.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/backends/platform/PalmOS/Src/os5_mouse.cpp b/backends/platform/PalmOS/Src/os5_mouse.cpp
index 0be9d3da46..c019e1607d 100644
--- a/backends/platform/PalmOS/Src/os5_mouse.cpp
+++ b/backends/platform/PalmOS/Src/os5_mouse.cpp
@@ -81,9 +81,9 @@ void OSystem_PalmOS5::draw_mouse() {
int ww;
if (_overlayVisible) {
- int16 *bak = (int16 *)_mouseBackupP;
- int16 *pal = _cursorPaletteDisabled ? _nativePal : _mousePal;
- int16 *dst = _overlayP + y * _screenWidth + x;
+ uint16 *bak = (uint16 *)_mouseBackupP;
+ uint16 *pal = _cursorPaletteDisabled ? _nativePal : _mousePal;
+ uint16 *dst = _overlayP + y * _screenWidth + x;
do {
ww = w;
@@ -133,8 +133,8 @@ void OSystem_PalmOS5::undraw_mouse() {
// no need to do clipping here, since draw_mouse() did that already
if (_overlayVisible) {
- int16 *dst = _overlayP + _mouseOldState.y * _screenWidth + _mouseOldState.x;
- int16 *bak = (int16 *)_mouseBackupP;
+ uint16 *dst = _overlayP + _mouseOldState.y * _screenWidth + _mouseOldState.x;
+ uint16 *bak = (uint16 *)_mouseBackupP;
do {
MemMove(dst, bak, _mouseOldState.w * 2);