[Scummvm-cvs-logs] scummvm master -> 741e26cfd2c9484bd4ae4698c9ba0f5925be2b38

csnover csnover at users.noreply.github.com
Fri May 27 02:08:30 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
741e26cfd2 SCI32: Remove unused Plane fields


Commit: 741e26cfd2c9484bd4ae4698c9ba0f5925be2b38
    https://github.com/scummvm/scummvm/commit/741e26cfd2c9484bd4ae4698c9ba0f5925be2b38
Author: Colin Snover (github.com at zetafleet.com)
Date: 2016-05-26T19:06:35-05:00

Commit Message:
SCI32: Remove unused Plane fields

These fields were written and never read in SSCI.

Changed paths:
    engines/sci/graphics/plane32.cpp
    engines/sci/graphics/plane32.h



diff --git a/engines/sci/graphics/plane32.cpp b/engines/sci/graphics/plane32.cpp
index d05e4f7..d5c297e 100644
--- a/engines/sci/graphics/plane32.cpp
+++ b/engines/sci/graphics/plane32.cpp
@@ -45,8 +45,6 @@ void DrawList::add(ScreenItem *screenItem, const Common::Rect &rect) {
 uint16 Plane::_nextObjectId = 20000;
 
 Plane::Plane(const Common::Rect &gameRect, PlanePictureCodes pictureId) :
-_width(g_sci->_gfxFrameout->getCurrentBuffer().scriptWidth),
-_height(g_sci->_gfxFrameout->getCurrentBuffer().scriptHeight),
 _pictureId(pictureId),
 _mirrored(false),
 _back(0),
@@ -65,8 +63,6 @@ _gameRect(gameRect) {
 }
 
 Plane::Plane(reg_t object) :
-_width(g_sci->_gfxFrameout->getCurrentBuffer().scriptWidth),
-_height(g_sci->_gfxFrameout->getCurrentBuffer().scriptHeight),
 _priorityChanged(false),
 _object(object),
 _redrawAllCount(g_sci->_gfxFrameout->getScreenCount()),
@@ -97,8 +93,6 @@ _moved(0) {
 Plane::Plane(const Plane &other) :
 _pictureId(other._pictureId),
 _mirrored(other._mirrored),
-_field_34(other._field_34), _field_38(other._field_38),
-_field_3C(other._field_3C), _field_40(other._field_40),
 _back(other._back),
 _object(other._object),
 _priority(other._priority),
@@ -116,11 +110,7 @@ void Plane::operator=(const Plane &other) {
 	_mirrored = other._mirrored;
 	_priority = other._priority;
 	_back = other._back;
-	_width = other._width;
-	_field_34 = other._field_34;
-	_height = other._height;
 	_screenRect = other._screenRect;
-	_field_3C = other._field_3C;
 	_priorityChanged = other._priorityChanged;
 }
 
@@ -769,8 +759,6 @@ void Plane::sync(const Plane *other, const Common::Rect &screenRect) {
 	}
 
 	convertGameRectToPlaneRect();
-	_width = g_sci->_gfxFrameout->getCurrentBuffer().scriptWidth;
-	_height = g_sci->_gfxFrameout->getCurrentBuffer().scriptHeight;
 	_screenRect = _planeRect;
 	// NOTE: screenRect originally was retrieved through globals
 	// instead of being passed into the function
diff --git a/engines/sci/graphics/plane32.h b/engines/sci/graphics/plane32.h
index 53749f8..c93fb5b 100644
--- a/engines/sci/graphics/plane32.h
+++ b/engines/sci/graphics/plane32.h
@@ -101,16 +101,6 @@ private:
 	static uint16 _nextObjectId;
 
 	/**
-	 * The dimensions of the plane, in game script
-	 * coordinates.
-	 * TODO: These are never used and are always
-	 * scriptWidth x scriptHeight in SCI engine? The actual
-	 * dimensions of the plane are always in
-	 * gameRect/planeRect.
-	 */
-	int16 _width, _height;
-
-	/**
 	 * For planes that are used to render picture data, the
 	 * resource ID of the picture to be displayed. This
 	 * value may also be one of the special
@@ -135,10 +125,6 @@ private:
 	 */
 	bool _pictureChanged;
 
-	// TODO: Are these ever actually used?
-	int _field_34, _field_38; // probably a point or ratio
-	int _field_3C, _field_40; // probably a point or ratio
-
 	/**
 	 * Converts the dimensions of the game rect used by
 	 * scripts to the dimensions of the plane rect used to






More information about the Scummvm-git-logs mailing list