aboutsummaryrefslogtreecommitdiff
path: root/backends/PalmOS/Src/palmovl.cpp
diff options
context:
space:
mode:
authorChris Apers2005-11-05 11:55:24 +0000
committerChris Apers2005-11-05 11:55:24 +0000
commitc4e5cdd8dfc48cab327492e91e177a7d520db3ef (patch)
tree568954a099ae34ec949220530ef6f587f2beecdb /backends/PalmOS/Src/palmovl.cpp
parented885bb958285c964c959edba40971a15f09a99a (diff)
downloadscummvm-rg350-c4e5cdd8dfc48cab327492e91e177a7d520db3ef.tar.gz
scummvm-rg350-c4e5cdd8dfc48cab327492e91e177a7d520db3ef.tar.bz2
scummvm-rg350-c4e5cdd8dfc48cab327492e91e177a7d520db3ef.zip
Obsolete files
svn-id: r19460
Diffstat (limited to 'backends/PalmOS/Src/palmovl.cpp')
-rw-r--r--backends/PalmOS/Src/palmovl.cpp126
1 files changed, 0 insertions, 126 deletions
diff --git a/backends/PalmOS/Src/palmovl.cpp b/backends/PalmOS/Src/palmovl.cpp
deleted file mode 100644
index 37ed97d3e9..0000000000
--- a/backends/PalmOS/Src/palmovl.cpp
+++ /dev/null
@@ -1,126 +0,0 @@
-/* ScummVM - Scumm Interpreter
- * Copyright (C) 2001 Ludvig Strigeus
- * Copyright (C) 2001-2005 The ScummVM project
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
-
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
-
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- * $Header$
- *
- */
-#include "common/stdafx.h"
-#include "palm.h"
-
-void OSystem_PALMOS::showOverlay() {
- // hide the mouse
- undraw_mouse();
- // save background
- byte *src = _offScreenP;
- byte *dst = _tmpBackupP;
- int h = _screenHeight;
-
- UInt32 offset = 0;
- do {
- DmWrite(dst, offset, src, _screenWidth);
- offset += _screenWidth;
- src += _offScreenPitch;
- } while (--h);
-
- _overlayVisible = true;
- clearOverlay();
-}
-
-void OSystem_PALMOS::hideOverlay() {
- // hide the mouse
- undraw_mouse();
-
- _overlayVisible = false;
- copyRectToScreen(_tmpBackupP, _screenWidth, 0, 0, _screenWidth, _screenHeight);
-}
-
-void OSystem_PALMOS::clearOverlay() {
- if (!_overlayVisible)
- return;
-
- // hide the mouse
- undraw_mouse();
- // restore background
- DmWrite(_tmpScreenP, 0, _tmpBackupP, _screenWidth * _screenHeight);
-}
-
-void OSystem_PALMOS::grabOverlay(byte *buf, int pitch) {
- if (!_overlayVisible)
- return;
-
- // hide the mouse
- undraw_mouse();
-
- byte *src = _tmpScreenP;
- int h = _screenHeight;
-
- do {
- memcpy(buf, src, _screenWidth);
- src += _screenWidth;
- buf += pitch;
- } while (--h);
-}
-
-void OSystem_PALMOS::copyRectToOverlay(const byte *buf, int pitch, int x, int y, int w, int h) {
- if (!_overlayVisible)
- return;
-
- if (!_tmpScreenP)
- return;
-
- // Clip the coordinates
- if (x < 0) {
- w += x;
- buf -= x;
- x = 0;
- }
-
- if (y < 0) {
- h += y; buf -= y * pitch;
- y = 0;
- }
-
- if (w > _screenWidth - x)
- w = _screenWidth - x;
-
- if (h > _screenHeight - y)
- h = _screenHeight - y;
-
- if (w <= 0 || h <= 0)
- return;
-
- /* FIXME: undraw mouse only if the draw rect intersects with the mouse rect */
- if (_mouseDrawn) {
-/* RectangleType mouse = {_mouseCurState.x, _mouseCurState.y, _mouseCurState.w, _mouseCurState.h};
- RectangleType copy = {x, y, w, h};
- RectangleType result;
-
- RctGetIntersection(&mouse, &copy, &result);
-
- if (result.extent.x !=0 && result.extent.y !=0)*/
- undraw_mouse();
- }
-
- byte *dst = _tmpScreenP;
- int offset = y * _screenWidth + x;
- do {
- DmWrite(dst, offset, buf, w);
- offset += _screenWidth;
- buf += pitch;
- } while (--h);
-}