diff options
author | Chris Apers | 2004-09-12 12:35:43 +0000 |
---|---|---|
committer | Chris Apers | 2004-09-12 12:35:43 +0000 |
commit | a727918ba1f6a91977ad789c6196453e4c05f440 (patch) | |
tree | 89c3ac3aa5101305819e3be7243fb228109dfed3 /backends/PalmOS/Src/arm | |
parent | 7aca0381e48d16f9271287981d75ee8a438c8b29 (diff) | |
download | scummvm-rg350-a727918ba1f6a91977ad789c6196453e4c05f440.tar.gz scummvm-rg350-a727918ba1f6a91977ad789c6196453e4c05f440.tar.bz2 scummvm-rg350-a727918ba1f6a91977ad789c6196453e4c05f440.zip |
Files to be renamed
svn-id: r15037
Diffstat (limited to 'backends/PalmOS/Src/arm')
-rw-r--r-- | backends/PalmOS/Src/arm/ArmNative.h | 68 | ||||
-rw-r--r-- | backends/PalmOS/Src/arm/copy_rect.cpp | 24 | ||||
-rw-r--r-- | backends/PalmOS/Src/arm/copy_rect.h | 11 | ||||
-rw-r--r-- | backends/PalmOS/Src/arm/wide_ls.cpp | 23 | ||||
-rw-r--r-- | backends/PalmOS/Src/arm/wide_ls.h | 11 | ||||
-rw-r--r-- | backends/PalmOS/Src/arm/wide_pt.cpp | 37 | ||||
-rw-r--r-- | backends/PalmOS/Src/arm/wide_pt.h | 11 |
7 files changed, 0 insertions, 185 deletions
diff --git a/backends/PalmOS/Src/arm/ArmNative.h b/backends/PalmOS/Src/arm/ArmNative.h deleted file mode 100644 index 502752648b..0000000000 --- a/backends/PalmOS/Src/arm/ArmNative.h +++ /dev/null @@ -1,68 +0,0 @@ -#ifndef _ARMNATIVE_H_ -#define _ARMNATIVE_H_ - -#include "PNOLoader.h" - -#ifdef WIN32 - #include "testing/SimNative.h" - #include "testing/oscalls.h" -#endif - -//#define DISABLE_ARM -//#define DEBUG_ARM - -// rsrc -enum { - ARM_PA1SND = 1, - ARM_STREAMSND, - ARM_OWIDELS, - ARM_OWIDEPT, - ARM_OCOPYRECT -}; - -#define TRUE 1 -#define FALSE 0 - -// types -typedef struct { - void *srcP; - void *dstP; - UInt32 length; -} ARMPa1SndType, *ARMPa1SndPtr; - -typedef struct { - void *proc; - void *param; - - void *handle; // sound handle - UInt32 size; // buffer size - UInt32 slot; - UInt32 active, // is the sound handler active - set, // is the buffer filled - wait; // do we need to wait for sound completion - void *dataP, // main buffer - *tmpP; // tmp buffer (convertion) -} SoundDataType; - -typedef struct { - void *dst; - void *src; -} OSysWideType , *OSysWidePtr; - -typedef struct { - void *dst; - const void *buf; - UInt32 pitch, _offScreenPitch; - UInt32 w, h; -} OSysCopyType, *OSysCopyPtr; - -// calls -MemPtr _PceInit(DmResID resID); -UInt32 _PceCall(void *armP, void *userDataP); -void _PceFree(void *armP); - -MemPtr _PnoInit(DmResID resID, PnoDescriptor *pnoP); -UInt32 _PnoCall(PnoDescriptor *pnoP, void *userDataP); -void _PnoFree(PnoDescriptor *pnoP, MemPtr armP); - -#endif
\ No newline at end of file diff --git a/backends/PalmOS/Src/arm/copy_rect.cpp b/backends/PalmOS/Src/arm/copy_rect.cpp deleted file mode 100644 index c6a634f48c..0000000000 --- a/backends/PalmOS/Src/arm/copy_rect.cpp +++ /dev/null @@ -1,24 +0,0 @@ -#include "ArmNative.h" -#include "endianutils.h" -#include "../shared.h" - -void O_CopyRectToScreen(void *userData68KP) { - OSysCopyPtr dataP = (OSysCopyType *)userData68KP; - - UInt8 *dst = (UInt8 *)ReadUnaligned32(&(dataP->dst)); - UInt8 *buf = (UInt8 *)ReadUnaligned32(&(dataP->buf)); - UInt32 pitch = ReadUnaligned32(&(dataP->pitch)); - UInt32 _offScreenPitch = ReadUnaligned32(&(dataP->_offScreenPitch)); - UInt32 w = ReadUnaligned32(&(dataP->w)); - UInt32 h = ReadUnaligned32(&(dataP->h)); - - if (_offScreenPitch == pitch && pitch == w) { - MemMove(dst, buf, h * w); - } else { - do { - MemMove(dst, buf, w); - dst += _offScreenPitch; - buf += pitch; - } while (--h); - } -} diff --git a/backends/PalmOS/Src/arm/copy_rect.h b/backends/PalmOS/Src/arm/copy_rect.h deleted file mode 100644 index b869e64368..0000000000 --- a/backends/PalmOS/Src/arm/copy_rect.h +++ /dev/null @@ -1,11 +0,0 @@ -#ifndef __WIDE_LS_H__ -#define __WIDE_LS_H__ - -#include <PalmOS.h> - -#define COMPILE_OCOPYRECT -#define COMPILE_PACE - -void O_CopyRectToScreen(void *userData68KP); - -#endif
\ No newline at end of file diff --git a/backends/PalmOS/Src/arm/wide_ls.cpp b/backends/PalmOS/Src/arm/wide_ls.cpp deleted file mode 100644 index da748ab86c..0000000000 --- a/backends/PalmOS/Src/arm/wide_ls.cpp +++ /dev/null @@ -1,23 +0,0 @@ -#include "ArmNative.h" -#include "endianutils.h" -#include "../shared.h" - -void O_WideLandscape(void *userData68KP) { - OSysWidePtr dataP = (OSysWideType *)userData68KP; - - Coord x, y; - UInt8 *dst = (UInt8 *)ReadUnaligned32(&(dataP->dst)); - UInt8 *src = (UInt8 *)ReadUnaligned32(&(dataP->src)); - - for (y = 0; y < WIDE_HALF_HEIGHT; y++) { - // draw 2 lines - for (x = 0; x < WIDE_FULL_WIDTH; x++) { - *dst++ = *src++; - *dst++ = *src; - *dst++ = *src++; - } - // copy the second to the next line - MemMove(dst, dst - 480, 480); - dst += 480; - } -} diff --git a/backends/PalmOS/Src/arm/wide_ls.h b/backends/PalmOS/Src/arm/wide_ls.h deleted file mode 100644 index eb42b624ea..0000000000 --- a/backends/PalmOS/Src/arm/wide_ls.h +++ /dev/null @@ -1,11 +0,0 @@ -#ifndef __WIDE_LS_H__ -#define __WIDE_LS_H__ - -#include <PalmOS.h> - -#define COMPILE_OWIDELS -#define COMPILE_PACE - -void O_WideLandscape(void *userData68KP); - -#endif
\ No newline at end of file diff --git a/backends/PalmOS/Src/arm/wide_pt.cpp b/backends/PalmOS/Src/arm/wide_pt.cpp deleted file mode 100644 index 007bfa3481..0000000000 --- a/backends/PalmOS/Src/arm/wide_pt.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include "ArmNative.h" -#include "endianutils.h" -#include "../shared.h" - -void O_WidePortrait(void *userData68KP) { - OSysWidePtr dataP = (OSysWideType *)userData68KP; - - Coord x, y; - UInt8 *dst = (UInt8 *)ReadUnaligned32(&(dataP->dst)); - UInt8 *src1 = (UInt8 *)ReadUnaligned32(&(dataP->src)); - UInt8 *src2 = src1; - - for (x = 0; x < WIDE_HALF_WIDTH; x++) { - for (y = 0; y < WIDE_HALF_HEIGHT; y++) { - *dst++ = *src1; - src1 += WIDE_PITCH; - *dst++ = *src1; - *dst++ = *src1; - src1 += WIDE_PITCH; - } - src1 = --src2; - dst += 20; // we draw 200pix scaled to 1.5 = 300, screen width=320, so next is 20 - - for (y = 0; y < WIDE_HALF_HEIGHT; y++) { - *dst++ = *src1; - src1 += WIDE_PITCH; - *dst++ = *src1; - *dst++ = *src1; - src1 += WIDE_PITCH; - } - src1 = --src2; - dst += 20; - - MemMove(dst, dst - WIDE_PITCH, 300); // 300 = 200 x 1.5 - dst += WIDE_PITCH; - } -}
\ No newline at end of file diff --git a/backends/PalmOS/Src/arm/wide_pt.h b/backends/PalmOS/Src/arm/wide_pt.h deleted file mode 100644 index 4ac4b4fb12..0000000000 --- a/backends/PalmOS/Src/arm/wide_pt.h +++ /dev/null @@ -1,11 +0,0 @@ -#ifndef __WIDE_PT_H__ -#define __WIDE_PT_H__ - -#include <PalmOS.h> - -#define COMPILE_OWIDEPT -#define COMPILE_PACE - -void O_WidePortrait(void *userData68KP); - -#endif
\ No newline at end of file |