[Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src/arm copyrectangle.cpp,NONE,1.1 copyrectangle.h,NONE,1.1

Chris Apers chrilith at users.sourceforge.net
Sun Sep 12 05:38:06 CEST 2004


Update of /cvsroot/scummvm/scummvm/backends/PalmOS/Src/arm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30834

Added Files:
	copyrectangle.cpp copyrectangle.h 
Log Message:
Renamed and use the new ARM macros

--- NEW FILE: copyrectangle.cpp ---
#include "native.h"
#include "endianutils.h"

#define MAIN_TYPE	CopyRectangleType
#include "macros.h"

UInt32 OSystem_CopyRectToScreen(void *userData68KP) {
// import variables
	SETPTR	(UInt8 *,	dst				)
	SETPTR	(UInt8 *,	buf				)
	SET32	(UInt32,	pitch			)
	SET32	(UInt32,	_offScreenPitch	)
	SET32	(UInt32,	w	)
	SET32	(UInt32,	h	)
// end of import

	if (w == pitch && w == _offScreenPitch) {
		MemMove(dst, buf, w*h);
	} else {
		do {
			MemMove(dst, buf, w);
			dst += _offScreenPitch;
			buf += pitch;
		} while (--h);
	}

	return 0;
}
--- NEW FILE: copyrectangle.h ---
#ifndef __WIDE_LS_H__
#define __WIDE_LS_H__

#include <PalmOS.h>

#define COMPILE_COPYRECT
#define COMPILE_PACE

UInt32 OSystem_CopyRectToScreen(void *userData68KP);

#endif




More information about the Scummvm-git-logs mailing list