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

Chris Apers chrilith at users.sourceforge.net
Sun Sep 12 05:39:00 CEST 2004


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

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

--- NEW FILE: widelandscape.cpp ---
#include "native.h"
#include "endianutils.h"
#include "../shared.h"

#define MAIN_TYPE	WideType
#include "macros.h"

UInt32 OSystem_updateScreen_wideLandscape(void *userData68KP) {
// import variables
	SETPTR(UInt8 *	,dst)
	SETPTR(UInt8 *	,src)
// end of import

	Coord x, y;

	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;
	}
	
	return 0;
}

--- NEW FILE: widelandscape.h ---
#ifndef __WIDE_LS_H__
#define __WIDE_LS_H__

#include <PalmOS.h>

#define COMPILE_WIDELANDSCAPE
#define COMPILE_PACE

UInt32 OSystem_updateScreen_wideLandscape(void *userData68KP);

#endif




More information about the Scummvm-git-logs mailing list