[Scummvm-cvs-logs] CVS: scummvm/saga actionmap.cpp,1.22,1.23 actionmap.h,1.9,1.10 actor.cpp,1.24,1.25 actor.h,1.8,1.9 console.cpp,1.13,1.14 events.cpp,1.25,1.26 gfx.cpp,1.23,1.24 gfx.h,1.8,1.9 input.cpp,1.13,1.14 interface.cpp,1.22,1.23 interface.h,1.7,1.8 isomap.cpp,1.12,1.13 objectmap.cpp,1.18,1.19 objectmap.h,1.6,1.7 render.cpp,1.31,1.32 saga.h,1.37,1.38 scene.cpp,1.38,1.39 sfuncs.cpp,1.21,1.22 sprite.cpp,1.19,1.20

Eugene Sandulenko sev at users.sourceforge.net
Mon Oct 4 16:15:38 CEST 2004


Update of /cvsroot/scummvm/scummvm/saga
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31983

Modified Files:
	actionmap.cpp actionmap.h actor.cpp actor.h console.cpp 
	events.cpp gfx.cpp gfx.h input.cpp interface.cpp interface.h 
	isomap.cpp objectmap.cpp objectmap.h render.cpp saga.h 
	scene.cpp sfuncs.cpp sprite.cpp 
Log Message:
R_POINT -> Common::Point, R_RECT -> Common::Rect. Less R_ prefixes.


Index: actionmap.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/actionmap.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- actionmap.cpp	10 Aug 2004 18:31:32 -0000	1.22
+++ actionmap.cpp	4 Oct 2004 23:09:38 -0000	1.23
@@ -58,7 +58,7 @@
 int ActionMap::loadMap(const byte * exmap_res, size_t exmap_res_len) {
 	// Loads exit map data from specified exit map resource
 	R_ACTIONMAP_ENTRY *exmap_entry;
-	R_POINT *exmap_pt_tbl;
+	Point *exmap_pt_tbl;
 
 	int exit_ct;
 	int i, pt;
@@ -92,7 +92,7 @@
 			return R_FAILURE;
 		}
 
-		exmap_pt_tbl = (R_POINT *)malloc(exmap_entry[i].pt_count * sizeof *exmap_pt_tbl);
+		exmap_pt_tbl = (Point *)malloc(exmap_entry[i].pt_count * sizeof *exmap_pt_tbl);
 		if (exmap_pt_tbl == NULL) {
 			warning("Memory allocation failure");
 			return R_MEM;
@@ -171,7 +171,7 @@
 }
 
 void ActionMap::actionInfo(int argc, char *argv[]) {
-	R_POINT *pt;
+	Point *pt;
 
 	int i;
 	int pt_i;

Index: actionmap.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/actionmap.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- actionmap.h	1 Aug 2004 22:52:45 -0000	1.9
+++ actionmap.h	4 Oct 2004 23:09:38 -0000	1.10
@@ -35,7 +35,7 @@
 	int unknown06;
 
 	int pt_count;
-	R_POINT *pt_tbl;
+	Point *pt_tbl;
 };
 
 class ActionMap {

Index: actor.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/actor.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- actor.cpp	12 Aug 2004 23:57:45 -0000	1.24
+++ actor.cpp	4 Oct 2004 23:09:38 -0000	1.25
@@ -727,7 +727,7 @@
 	return R_SUCCESS;
 }
 
-int Actor::walkTo(int id, R_POINT *walk_pt, uint16 flags, R_SEMAPHORE *sem) {
+int Actor::walkTo(int id, Point *walk_pt, uint16 flags, R_SEMAPHORE *sem) {
 	R_ACTORINTENT actor_intent;
 	R_WALKINTENT *walk_intent;
 	R_WALKINTENT zero_intent;
@@ -776,7 +776,7 @@
 	return R_SUCCESS;
 }
 
-int Actor::setPathNode(R_WALKINTENT *walk_int, R_POINT *src_pt, R_POINT *dst_pt, R_SEMAPHORE *sem) {
+int Actor::setPathNode(R_WALKINTENT *walk_int, Point *src_pt, Point *dst_pt, R_SEMAPHORE *sem) {
 	R_WALKNODE new_node;
 
 	walk_int->wi_active = 1;
@@ -960,7 +960,7 @@
 	return R_SUCCESS;
 }
 
-int Actor::move(int index, R_POINT *move_pt) {
+int Actor::move(int index, Point *move_pt) {
 	YS_DL_NODE *node;
 	R_ACTOR *actor;
 
@@ -992,7 +992,7 @@
 	return R_SUCCESS;
 }
 
-int Actor::moveRelative(int index, R_POINT *move_pt) {
+int Actor::moveRelative(int index, Point *move_pt) {
 	YS_DL_NODE *node;
 	R_ACTOR *actor;
 
@@ -1033,14 +1033,14 @@
 	}
 }
 
-int Actor::AtoS(R_POINT *screen, const R_POINT *actor) {
+int Actor::AtoS(Point *screen, const Point *actor) {
 	screen->x = (actor->x / R_ACTOR_LMULT);
 	screen->y = (actor->y / R_ACTOR_LMULT);
 
 	return R_SUCCESS;
 }
 
-int Actor::StoA(R_POINT *actor, const R_POINT *screen) {
+int Actor::StoA(Point *actor, const Point *screen) {
 	actor->x = (screen->x * R_ACTOR_LMULT);
 	actor->y = (screen->y * R_ACTOR_LMULT);
 
@@ -1078,7 +1078,7 @@
 
 static void CF_actor_move(int argc, char *argv[], void *refCon) {
 	int id;
-	R_POINT move_pt;
+	Point move_pt;
 
 	if (argc < 2)
 		return;
@@ -1095,7 +1095,7 @@
 
 static void CF_actor_moverel(int argc, char *argv[], void *refCon) {
 	int id;
-	R_POINT move_pt;
+	Point move_pt;
 
 	if (argc < 3)
 		return;

Index: actor.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/actor.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- actor.h	3 Aug 2004 01:07:34 -0000	1.8
+++ actor.h	4 Oct 2004 23:09:38 -0000	1.9
@@ -95,10 +95,10 @@
 	int time;
 	float slope;
 	int x_dir;
-	R_POINT org;
-	R_POINT cur;
+	Point org;
+	Point cur;
 
-	R_POINT dst_pt;
+	Point dst_pt;
 	YS_DL_LIST *nodelist;
 
 	int sem_held;
@@ -109,7 +109,7 @@
 
 struct R_WALKNODE {
 	int calc_flag;
-	R_POINT node_pt;
+	Point node_pt;
 };
 
 struct R_SPEAKINTENT {
@@ -133,8 +133,8 @@
 	int name_i;        // Actor's index in actor name string list
 	uint16 flags;
 
-	R_POINT a_pt;      // Actor's logical coordinates
-	R_POINT s_pt;      // Actor's screen coordinates
+	Point a_pt;      // Actor's logical coordinates
+	Point s_pt;      // Actor's screen coordinates
 
 	int sl_rn;         // Actor's sprite list res #
 	int si_rn;         // Actor's sprite index res #
@@ -196,13 +196,13 @@
 	int actorExists(uint16 actor_id);
 
 	int drawList();
-	int AtoS(R_POINT *logical, const R_POINT *actor);
-	int StoA(R_POINT *actor, const R_POINT *screen);
+	int AtoS(Point *logical, const Point *actor);
+	int StoA(Point *actor, const Point *screen);
 
-	int move(int index, R_POINT *move_pt);
-	int moveRelative(int index, R_POINT *move_pt);
+	int move(int index, Point *move_pt);
+	int moveRelative(int index, Point *move_pt);
 
-	int walkTo(int index, R_POINT *walk_pt, uint16 flags, R_SEMAPHORE *sem);
+	int walkTo(int index, Point *walk_pt, uint16 flags, R_SEMAPHORE *sem);
 	
 	int getActorIndex(uint16 actor_id);
 	
@@ -222,7 +222,7 @@
  private:
 	int handleWalkIntent(R_ACTOR *actor, R_WALKINTENT *a_walk_int, int *complete_p, int msec);
 	int handleSpeakIntent(R_ACTOR *actor, R_SPEAKINTENT *a_speakint, int *complete_p, int msec);
-	int setPathNode(R_WALKINTENT *walk_int, R_POINT *src_pt, R_POINT *dst_pt, R_SEMAPHORE *sem);
+	int setPathNode(R_WALKINTENT *walk_int, Point *src_pt, Point *dst_pt, R_SEMAPHORE *sem);
 	int loadActorSpriteIndex(R_ACTOR *actor, int si_rn, int *last_frame_p);
 
 	SagaEngine *_vm;

Index: console.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/console.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- console.cpp	12 Aug 2004 01:11:10 -0000	1.13
+++ console.cpp	4 Oct 2004 23:09:38 -0000	1.14
@@ -191,7 +191,7 @@
 	R_CONSOLE_LINE *start_ptr;
 	int txt_fgcolor;
 	int txt_shcolor;
-	R_RECT fill_rect;
+	Rect fill_rect;
 	int i;
 
 	if (!_active) {

Index: events.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/events.cpp,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- events.cpp	11 Aug 2004 22:27:35 -0000	1.25
+++ events.cpp	4 Oct 2004 23:09:38 -0000	1.26
@@ -316,7 +316,7 @@
 	case R_BG_EVENT:
 		{
 			R_BUFFER_INFO rbuf_info;
-			R_POINT bg_pt;
+			Point bg_pt;
 
 			if (_vm->_scene->getMode() == R_SCENE_MODE_NORMAL) {
 

Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/gfx.cpp,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- gfx.cpp	2 Aug 2004 11:27:50 -0000	1.23
+++ gfx.cpp	4 Oct 2004 23:09:38 -0000	1.24
@@ -75,7 +75,7 @@
 	int y;
 	int color = 0;
 
-	R_RECT pal_rect;
+	Rect pal_rect;
 
 	for (y = 0; y < 16; y++) {
 		pal_rect.top = (y * 8) + 4;
@@ -128,7 +128,7 @@
 // - The surface must match the logical dimensions of the buffer exactly.
 // - Returns R_FAILURE on error
 int Gfx::bufToSurface(R_SURFACE *ds, const byte *src, int src_w, int src_h, 
-					 R_RECT *src_rect, R_POINT *dst_pt) {
+					 Rect *src_rect, Point *dst_pt) {
 	const byte *read_p;
 	byte *write_p;
 
@@ -254,7 +254,7 @@
 }
 
 int Gfx::bufToBuffer(byte *dst_buf, int dst_w, int dst_h, const byte *src,
-					int src_w, int src_h, R_RECT *src_rect, R_POINT *dst_pt) {
+					int src_w, int src_h, Rect *src_rect, Point *dst_pt) {
 	const byte *read_p;
 	byte *write_p;
 	int row;
@@ -375,7 +375,7 @@
 
 // Fills a rectangle in the surface ds from point 'p1' to point 'p2' using
 // the specified color.
-int Gfx::drawRect(R_SURFACE *ds, R_RECT *dst_rect, int color) {
+int Gfx::drawRect(R_SURFACE *ds, Rect *dst_rect, int color) {
 	byte *write_p;
 
 	int w;
@@ -415,7 +415,7 @@
 	return R_SUCCESS;
 }
 
-int Gfx::drawFrame(R_SURFACE *ds, R_POINT *p1, R_POINT *p2, int color) {
+int Gfx::drawFrame(R_SURFACE *ds, Point *p1, Point *p2, int color) {
 	int left, top, right, bottom;
 
 	int min_x;
@@ -423,10 +423,10 @@
 	int min_y;
 	int max_y;
 
-	R_POINT n_p1; /* 1 .. 2 */
-	R_POINT n_p2; /* .    . */
-	R_POINT n_p3; /* .    . */
-	R_POINT n_p4; /* 4 .. 3 */
+	Point n_p1; /* 1 .. 2 */
+	Point n_p2; /* .    . */
+	Point n_p3; /* .    . */
+	Point n_p4; /* 4 .. 3 */
 
 	assert((ds != NULL) && (p1 != NULL) && (p2 != NULL));
 
@@ -457,8 +457,8 @@
 	return R_SUCCESS;
 }
 
-int Gfx::drawPolyLine(R_SURFACE *ds, R_POINT *pts, int pt_ct, int draw_color) {
-	R_POINT *first_pt = pts;
+int Gfx::drawPolyLine(R_SURFACE *ds, Point *pts, int pt_ct, int draw_color) {
+	Point *first_pt = pts;
 	int last_i = 1;
 	int i;
 
@@ -562,10 +562,10 @@
 	return R_SUCCESS;
 }
 
-int Gfx::clipLine(R_SURFACE *ds, const R_POINT *src_p1, const R_POINT *src_p2, 
-				 R_POINT *dst_p1, R_POINT *dst_p2) {
-	const R_POINT *n_p1;
-	const R_POINT *n_p2;
+int Gfx::clipLine(R_SURFACE *ds, const Point *src_p1, const Point *src_p2, 
+				 Point *dst_p1, Point *dst_p2) {
+	const Point *n_p1;
+	const Point *n_p2;
 
 	Common::Rect clip;
 	int left, top, right, bottom;
@@ -634,7 +634,7 @@
 // Coriolis Group Books, 1997
 //
 // Performs no clipping
-void Gfx::drawLine(R_SURFACE *ds, R_POINT *p1, R_POINT *p2, int color) {
+void Gfx::drawLine(R_SURFACE *ds, Point *p1, Point *p2, int color) {
 	byte *write_p;
 	int clip_result;
 	int temp;
@@ -646,7 +646,7 @@
 	int init_run;
 	int run;
 	int end_run;
-	R_POINT clip_p1, clip_p2;
+	Point clip_p1, clip_p2;
 	int left, top, right, bottom;
 	int i, k;
 

Index: gfx.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/gfx.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- gfx.h	3 Aug 2004 00:40:15 -0000	1.8
+++ gfx.h	4 Oct 2004 23:09:38 -0000	1.9
@@ -28,14 +28,14 @@
 
 namespace Saga {
 
-typedef Common::Point R_POINT;
-typedef Common::Rect R_RECT;
+using Common::Point;
+using Common::Rect;
 
 struct R_CLIPINFO {
 	// input members
-	const R_RECT *src_rect;
-	const R_RECT *dst_rect;
-	const R_POINT *dst_pt;
+	const Rect *src_rect;
+	const Rect *dst_rect;
+	const Point *dst_pt;
 
 	// output members
 	int nodraw;
@@ -65,7 +65,7 @@
 	int buf_w;
 	int buf_h;
 	int buf_pitch;
-	R_RECT clip_rect;
+	Rect clip_rect;
 };
 
 #define R_PAL_ENTRIES 256
@@ -88,15 +88,15 @@
 public:
 	int simpleBlit(R_SURFACE *dst_s, R_SURFACE *src_s);
 	int drawPalette(R_SURFACE *dst_s);
-	int bufToSurface(R_SURFACE *ds, const byte *src, int src_w, int src_h, R_RECT *src_rect, R_POINT *dst_pt);
+	int bufToSurface(R_SURFACE *ds, const byte *src, int src_w, int src_h, Rect *src_rect, Point *dst_pt);
 	int bufToBuffer(byte * dst_buf, int dst_w, int dst_h, const byte *src,
-		int src_w, int src_h, R_RECT *src_rect, R_POINT *dst_pt);
-	int drawRect(R_SURFACE *ds, R_RECT *dst_rect, int color);
-	int drawFrame(R_SURFACE *ds, R_POINT *p1, R_POINT *p2, int color);
-	int drawPolyLine(R_SURFACE *ds, R_POINT *pts, int pt_ct, int draw_color);
+		int src_w, int src_h, Rect *src_rect, Point *dst_pt);
+	int drawRect(R_SURFACE *ds, Rect *dst_rect, int color);
+	int drawFrame(R_SURFACE *ds, Point *p1, Point *p2, int color);
+	int drawPolyLine(R_SURFACE *ds, Point *pts, int pt_ct, int draw_color);
 	int getClipInfo(R_CLIPINFO *clipinfo);
-	int clipLine(R_SURFACE *ds, const R_POINT *src_p1, const R_POINT *src_p2, R_POINT *dst_p1, R_POINT *dst_p2);
-	void drawLine(R_SURFACE * ds, R_POINT *p1, R_POINT *p2, int color);
+	int clipLine(R_SURFACE *ds, const Point *src_p1, const Point *src_p2, Point *dst_p1, Point *dst_p2);
+	void drawLine(R_SURFACE * ds, Point *p1, Point *p2, int color);
 
 	Gfx(OSystem *system, int width, int height);
 	R_SURFACE *getBackBuffer();

Index: input.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/input.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- input.cpp	28 Sep 2004 20:19:27 -0000	1.13
+++ input.cpp	4 Oct 2004 23:09:38 -0000	1.14
@@ -35,7 +35,7 @@
 int SagaEngine::processInput() {
 	OSystem::Event event;
 
-	R_POINT imouse_pt;
+	Point imouse_pt;
 
 	while (g_system->pollEvent(event)) {
 		int in_char;
@@ -129,7 +129,7 @@
 	return R_SUCCESS;
 }
 
-R_POINT SagaEngine::getMousePos() {
+Point SagaEngine::getMousePos() {
 	return _mousePos;
 }
 

Index: interface.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/interface.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- interface.cpp	27 Aug 2004 01:32:10 -0000	1.22
+++ interface.cpp	4 Oct 2004 23:09:38 -0000	1.23
@@ -251,8 +251,8 @@
 	int lportrait_x;
 	int lportrait_y;
 
-	R_RECT rect;
-	R_POINT origin;
+	Rect rect;
+	Point origin;
 
 	back_buf = _vm->_gfx->getBackBuffer();
 
@@ -302,7 +302,7 @@
 	return R_SUCCESS;
 }
 
-int Interface::update(R_POINT *imouse_pt, int update_flag) {
+int Interface::update(Point *imouse_pt, int update_flag) {
 	R_GAME_DISPLAYINFO g_di;
 
 	R_SURFACE *back_buf;
@@ -347,7 +347,7 @@
 
 int Interface::drawStatusBar(R_SURFACE *ds) {
 	R_GAME_DISPLAYINFO g_di;
-	R_RECT rect;
+	Rect rect;
 
 	int string_w;
 
@@ -370,7 +370,7 @@
 	return R_SUCCESS;
 }
 
-int Interface::handleCommandClick(R_SURFACE *ds, R_POINT *imouse_pt) {
+int Interface::handleCommandClick(R_SURFACE *ds, Point *imouse_pt) {
 	int hit_button;
 	int ibutton_num;
 
@@ -421,7 +421,7 @@
 	return R_SUCCESS;
 }
 
-int Interface::handleCommandUpdate(R_SURFACE *ds, R_POINT *imouse_pt) {
+int Interface::handleCommandUpdate(R_SURFACE *ds, Point *imouse_pt) {
 	int hit_button;
 	int ibutton_num;
 
@@ -475,13 +475,13 @@
 	return R_SUCCESS;
 }
 
-int Interface::handlePlayfieldClick(R_SURFACE *ds, R_POINT *imouse_pt) {
+int Interface::handlePlayfieldClick(R_SURFACE *ds, Point *imouse_pt) {
 	int hit_object;
 	int object_num;
 	uint16 object_flags = 0;
 
 	int script_num;
-	R_POINT iactor_pt;
+	Point iactor_pt;
 
 	hit_object = _vm->_objectMap->hitTest(imouse_pt, &object_num);
 
@@ -516,7 +516,7 @@
 	return R_SUCCESS;
 }
 
-int Interface::handlePlayfieldUpdate(R_SURFACE *ds, R_POINT *imouse_pt) {
+int Interface::handlePlayfieldUpdate(R_SURFACE *ds, Point *imouse_pt) {
 	const char *object_name;
 	int object_num;
 	uint16 object_flags = 0;
@@ -556,7 +556,7 @@
 	return R_SUCCESS;
 }
 
-int Interface::hitTest(R_POINT *imouse_pt, int *ibutton) {
+int Interface::hitTest(Point *imouse_pt, int *ibutton) {
 	R_INTERFACE_BUTTON *buttons;
 
 	int nbuttons;

Index: interface.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/interface.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- interface.h	22 Aug 2004 18:28:42 -0000	1.7
+++ interface.h	4 Oct 2004 23:09:38 -0000	1.8
@@ -160,16 +160,16 @@
 	int deactivate();
 	int setStatusText(const char *new_txt);
 	int draw();
-	int update(R_POINT *imouse_pt, int update_flag);
+	int update(Point *imouse_pt, int update_flag);
 
 
  private:
-	int hitTest(R_POINT *imouse_pt, int *ibutton);
+	int hitTest(Point *imouse_pt, int *ibutton);
 	int drawStatusBar(R_SURFACE *ds);
-	int handleCommandUpdate(R_SURFACE *ds, R_POINT *imouse_pt);
-	int handleCommandClick(R_SURFACE *ds, R_POINT *imouse_pt);
-	int handlePlayfieldUpdate(R_SURFACE *ds, R_POINT *imouse_pt);
-	int handlePlayfieldClick(R_SURFACE *ds, R_POINT *imouse_pt);
+	int handleCommandUpdate(R_SURFACE *ds, Point *imouse_pt);
+	int handleCommandClick(R_SURFACE *ds, Point *imouse_pt);
+	int handlePlayfieldUpdate(R_SURFACE *ds, Point *imouse_pt);
+	int handlePlayfieldClick(R_SURFACE *ds, Point *imouse_pt);
 
  private:
 	SagaEngine *_vm;

Index: isomap.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/isomap.cpp,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- isomap.cpp	2 Aug 2004 16:20:34 -0000	1.12
+++ isomap.cpp	4 Oct 2004 23:09:38 -0000	1.13
@@ -133,7 +133,7 @@
 int IsoMap::draw(R_SURFACE *dst_s) {
 	R_GAME_DISPLAYINFO disp_info;
 	GAME_GetDisplayInfo(&disp_info);
-	R_RECT iso_rect(disp_info.logical_w - 1, disp_info.scene_h - 1);
+	Rect iso_rect(disp_info.logical_w - 1, disp_info.scene_h - 1);
 	_gfx->drawRect(dst_s, &iso_rect, 0);
 	drawMetamap(dst_s, -1000, -500);
 

Index: objectmap.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/objectmap.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- objectmap.cpp	10 Aug 2004 18:31:32 -0000	1.18
+++ objectmap.cpp	4 Oct 2004 23:09:38 -0000	1.19
@@ -69,7 +69,7 @@
 int ObjectMap::load(const byte *om_res, size_t om_res_len) {
 	R_OBJECTMAP_ENTRY *object_map;
 	R_CLICKAREA *clickarea;
-	R_POINT *point;
+	Point *point;
 
 	int i, k, m;
 
@@ -115,7 +115,7 @@
 			clickarea->n_points = readS.readUint16LE();
 			assert(clickarea->n_points != 0);
 
-			clickarea->points = (R_POINT *)malloc(clickarea->n_points * sizeof *(clickarea->points));
+			clickarea->points = (Point *)malloc(clickarea->n_points * sizeof *(clickarea->points));
 			if (clickarea->points == NULL) {
 				warning("Error: Memory allocation failed");
 				return R_MEM;
@@ -287,7 +287,7 @@
 
 // Uses Gfx::drawLine to display all clickareas for each object in the 
 // currently loaded object map resource.
-int ObjectMap::draw(R_SURFACE *ds, R_POINT *imouse_pt, int color, int color2) {
+int ObjectMap::draw(R_SURFACE *ds, Point *imouse_pt, int color, int color2) {
 	R_OBJECTMAP_ENTRY *object_map;
 	R_CLICKAREA *clickarea;
 
@@ -348,14 +348,14 @@
 	return R_SUCCESS;
 }
 
-static bool MATH_HitTestPoly(R_POINT *points, unsigned int npoints, R_POINT test_point) {
+static bool MATH_HitTestPoly(Point *points, unsigned int npoints, Point test_point) {
 	int yflag0;
 	int yflag1;
 	bool inside_flag = false;
 	unsigned int pt;
 
-	R_POINT *vtx0 = &points[npoints - 1];
-	R_POINT *vtx1 = &points[0];
+	Point *vtx0 = &points[npoints - 1];
+	Point *vtx1 = &points[0];
 
 	yflag0 = (vtx0->y >= test_point.y);
 	for (pt = 0; pt < npoints; pt++, vtx1++) {
@@ -373,11 +373,11 @@
 	return inside_flag;
 }
 
-int ObjectMap::hitTest(R_POINT * imouse_pt, int *object_num) {
-	R_POINT imouse;
+int ObjectMap::hitTest(Point * imouse_pt, int *object_num) {
+	Point imouse;
 	R_OBJECTMAP_ENTRY *object_map;
 	R_CLICKAREA *clickarea;
-	R_POINT *points;
+	Point *points;
 	int n_points;
 
 	int i, k;

Index: objectmap.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/objectmap.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- objectmap.h	2 Aug 2004 15:44:18 -0000	1.6
+++ objectmap.h	4 Oct 2004 23:09:38 -0000	1.7
@@ -34,7 +34,7 @@
 
 struct R_CLICKAREA {
 	int n_points;
-	R_POINT *points;
+	Point *points;
 };
 
 struct R_OBJECTMAP_ENTRY {
@@ -62,8 +62,8 @@
 	int getName(int object, const char **name);
 	int getFlags(int object, uint16 *flags);
 	int getEPNum(int object, int *ep_num);
-	int draw(R_SURFACE *draw_surface, R_POINT *imouse_pt, int color, int color2);
-	int hitTest(R_POINT *imouse_pt, int *object_num);
+	int draw(R_SURFACE *draw_surface, Point *imouse_pt, int color, int color2);
+	int hitTest(Point *imouse_pt, int *object_num);
 	void objectInfo(int argc, char *argv[]);
 private:
 	int _initialized;

Index: render.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/render.cpp,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- render.cpp	11 Aug 2004 14:04:12 -0000	1.31
+++ render.cpp	4 Oct 2004 23:09:38 -0000	1.32
@@ -110,10 +110,10 @@
 	R_GAME_DISPLAYINFO disp_info;
 	R_SCENE_INFO scene_info;
 	SCENE_BGINFO bg_info;
-	R_POINT bg_pt;
+	Point bg_pt;
 	char txt_buf[20];
 	int fps_width;
-	R_POINT mouse_pt;
+	Point mouse_pt;
 
 	if (!_initialized) {
 		return R_FAILURE;

Index: saga.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/saga.h,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- saga.h	11 Aug 2004 14:04:12 -0000	1.37
+++ saga.h	4 Oct 2004 23:09:38 -0000	1.38
@@ -143,10 +143,10 @@
 			double percent);
 
 	int processInput(void);
-	R_POINT getMousePos();
+	Point getMousePos();
 
  private:
-	R_POINT _mousePos;
+	Point _mousePos;
 };
 
 // FIXME: Global var. We use it until everything will be turned into objects

Index: scene.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/scene.cpp,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- scene.cpp	23 Sep 2004 06:53:46 -0000	1.38
+++ scene.cpp	4 Oct 2004 23:09:38 -0000	1.39
@@ -774,7 +774,7 @@
 int Scene::draw(R_SURFACE *dst_s) {
 	R_GAME_DISPLAYINFO disp_info;
 	R_BUFFER_INFO buf_info;
-	R_POINT bg_pt;
+	Point bg_pt;
 
 	assert(_initialized);
 

Index: sfuncs.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/sfuncs.cpp,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- sfuncs.cpp	3 Oct 2004 17:11:23 -0000	1.21
+++ sfuncs.cpp	4 Oct 2004 23:09:38 -0000	1.22
@@ -186,7 +186,7 @@
 	SDataWord_T y_parm;
 	int actor_id;
 	int actor_idx;
-	R_POINT pt;
+	Point pt;
 
 	actor_parm = thread->pop();
 	x_parm = thread->pop();
@@ -346,7 +346,7 @@
 	SDataWord_T y_parm;
 	int actor_id;
 	int actor_idx;
-	R_POINT pt;
+	Point pt;
 
 	actor_parm = thread->pop();
 	x_parm = thread->pop();
@@ -387,7 +387,7 @@
 	int actor_id;
 	int actor_idx;
 	int result;
-	R_POINT pt;
+	Point pt;
 
 	actor_parm = thread->pop();
 	x_parm = thread->pop();
@@ -437,7 +437,7 @@
 	SDataWord_T y_parm;
 	SDataWord_T unk_parm;
 	int actor_idx;
-	R_POINT pt;
+	Point pt;
 
 	actor_parm = thread->pop();
 	x_parm = thread->pop();
@@ -603,7 +603,7 @@
 	int actor_idx;
 	int action_state;
 	int result;
-	R_POINT pt;
+	Point pt;
 
 	actor_parm = thread->pop();
 	x_parm = thread->pop();

Index: sprite.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/sprite.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- sprite.cpp	11 Aug 2004 18:02:03 -0000	1.19
+++ sprite.cpp	4 Oct 2004 23:09:38 -0000	1.20
@@ -267,9 +267,9 @@
 	int e_slope;
 
 	// Clipinfo variables
-	R_POINT spr_pt;
-	R_RECT spr_src_rect;
-	R_RECT spr_dst_rect;
+	Point spr_pt;
+	Rect spr_src_rect;
+	Rect spr_dst_rect;
 	R_CLIPINFO ci;
 
 	// BG mask variables





More information about the Scummvm-git-logs mailing list