[Scummvm-cvs-logs] SF.net SVN: scummvm:[54288] scummvm/trunk/engines
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Wed Nov 17 13:22:08 CET 2010
Revision: 54288
http://scummvm.svn.sourceforge.net/scummvm/?rev=54288&view=rev
Author: fingolfin
Date: 2010-11-17 12:22:08 +0000 (Wed, 17 Nov 2010)
Log Message:
-----------
ENGINES: Change 'colour' to 'color'
Only changed this in engines where 'color' was/is already used
almost exclusively
Modified Paths:
--------------
scummvm/trunk/engines/agos/agos.h
scummvm/trunk/engines/agos/script_dp.cpp
scummvm/trunk/engines/agos/script_ff.cpp
scummvm/trunk/engines/agos/script_pp.cpp
scummvm/trunk/engines/kyra/items_lol.cpp
scummvm/trunk/engines/kyra/lol.h
scummvm/trunk/engines/lastexpress/data/background.h
scummvm/trunk/engines/scumm/palette.cpp
scummvm/trunk/engines/sword25/gfx/graphicengine.h
scummvm/trunk/engines/sword25/gfx/screenshot.cpp
Modified: scummvm/trunk/engines/agos/agos.h
===================================================================
--- scummvm/trunk/engines/agos/agos.h 2010-11-17 12:21:37 UTC (rev 54287)
+++ scummvm/trunk/engines/agos/agos.h 2010-11-17 12:22:08 UTC (rev 54288)
@@ -1927,7 +1927,7 @@
void off_setPathValues();
void off_stopClock();
void off_restartClock();
- void off_setColour();
+ void off_setColor();
void off_b3Set();
void off_b3Clear();
void off_b3Zero();
Modified: scummvm/trunk/engines/agos/script_dp.cpp
===================================================================
--- scummvm/trunk/engines/agos/script_dp.cpp 2010-11-17 12:21:37 UTC (rev 54287)
+++ scummvm/trunk/engines/agos/script_dp.cpp 2010-11-17 12:22:08 UTC (rev 54288)
@@ -281,7 +281,7 @@
OPCODE(opp_setPathValues),
OPCODE(off_stopClock),
OPCODE(off_restartClock),
- OPCODE(off_setColour),
+ OPCODE(off_setColor),
};
_opcodesDIMP = opcodes;
Modified: scummvm/trunk/engines/agos/script_ff.cpp
===================================================================
--- scummvm/trunk/engines/agos/script_ff.cpp 2010-11-17 12:21:37 UTC (rev 54287)
+++ scummvm/trunk/engines/agos/script_ff.cpp 2010-11-17 12:22:08 UTC (rev 54288)
@@ -282,7 +282,7 @@
OPCODE(off_setPathValues),
OPCODE(off_stopClock),
OPCODE(off_restartClock),
- OPCODE(off_setColour),
+ OPCODE(off_setColor),
/* 196 */
OPCODE(off_b3Set),
OPCODE(off_b3Clear),
@@ -638,8 +638,8 @@
_clockStopped = 0;
}
-void AGOSEngine_Feeble::off_setColour() {
- // 195: set palette colour
+void AGOSEngine_Feeble::off_setColor() {
+ // 195: set palette color
uint16 c = getVarOrByte() * 4;
uint8 r = getVarOrByte();
uint8 g = getVarOrByte();
Modified: scummvm/trunk/engines/agos/script_pp.cpp
===================================================================
--- scummvm/trunk/engines/agos/script_pp.cpp 2010-11-17 12:21:37 UTC (rev 54287)
+++ scummvm/trunk/engines/agos/script_pp.cpp 2010-11-17 12:22:08 UTC (rev 54288)
@@ -281,7 +281,7 @@
OPCODE(opp_setPathValues),
OPCODE(off_restartClock),
OPCODE(opp_pauseClock),
- OPCODE(off_setColour),
+ OPCODE(off_setColor),
};
_opcodesPuzzlePack = opcodes;
Modified: scummvm/trunk/engines/kyra/items_lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/items_lol.cpp 2010-11-17 12:21:37 UTC (rev 54287)
+++ scummvm/trunk/engines/kyra/items_lol.cpp 2010-11-17 12:22:08 UTC (rev 54288)
@@ -521,10 +521,10 @@
return a + b;
}
-int LoLEngine::checkSceneForItems(uint16 *blockDrawObjects, int colour) {
+int LoLEngine::checkSceneForItems(uint16 *blockDrawObjects, int color) {
while (*blockDrawObjects) {
if (!(*blockDrawObjects & 0x8000)) {
- if (!--colour)
+ if (!--color)
return *blockDrawObjects;
}
Modified: scummvm/trunk/engines/kyra/lol.h
===================================================================
--- scummvm/trunk/engines/kyra/lol.h 2010-11-17 12:21:37 UTC (rev 54287)
+++ scummvm/trunk/engines/kyra/lol.h 2010-11-17 12:22:08 UTC (rev 54288)
@@ -1223,7 +1223,7 @@
void assignItemToBlock(uint16 *assignedBlockObjects, int id);
int checkDrawObjectSpace(int itemX, int itemY, int partyX, int partyY);
- int checkSceneForItems(uint16 *blockDrawObjects, int colour);
+ int checkSceneForItems(uint16 *blockDrawObjects, int color);
uint8 _moneyColumnHeight[5];
uint16 _credits;
Modified: scummvm/trunk/engines/lastexpress/data/background.h
===================================================================
--- scummvm/trunk/engines/lastexpress/data/background.h 2010-11-17 12:21:37 UTC (rev 54287)
+++ scummvm/trunk/engines/lastexpress/data/background.h 2010-11-17 12:22:08 UTC (rev 54288)
@@ -34,14 +34,14 @@
uint32 {4} - position Y on screen
uint32 {4} - image width
uint32 {4} - image height
- uint32 {4} - red colour channel data size
- uint32 {4} - blue colour channel data size
- uint32 {4} - green colour channel data size
+ uint32 {4} - red color channel data size
+ uint32 {4} - blue color channel data size
+ uint32 {4} - green color channel data size
data:
- byte {x} - red colour channel data
- byte {x} - blue colour channel data
- byte {x} - green colour channel data
+ byte {x} - red color channel data
+ byte {x} - blue color channel data
+ byte {x} - green color channel data
*/
#include "lastexpress/drawable.h"
Modified: scummvm/trunk/engines/scumm/palette.cpp
===================================================================
--- scummvm/trunk/engines/scumm/palette.cpp 2010-11-17 12:21:37 UTC (rev 54287)
+++ scummvm/trunk/engines/scumm/palette.cpp 2010-11-17 12:22:08 UTC (rev 54288)
@@ -1092,7 +1092,7 @@
else
data = _currentPalette + i * 3;
- // Sam & Max film noir mode. Convert the colours to grayscale
+ // Sam & Max film noir mode. Convert the colors to grayscale
// before uploading them to the backend.
if (noir_mode) {
Modified: scummvm/trunk/engines/sword25/gfx/graphicengine.h
===================================================================
--- scummvm/trunk/engines/sword25/gfx/graphicengine.h 2010-11-17 12:21:37 UTC (rev 54287)
+++ scummvm/trunk/engines/sword25/gfx/graphicengine.h 2010-11-17 12:22:08 UTC (rev 54288)
@@ -79,24 +79,24 @@
// Enums
// -----
- // Colour formats
+ // Color formats
//
/**
- * The colour format used by the engine
+ * The color format used by the engine
*/
enum COLOR_FORMATS {
- /// Undefined/unknown colour format
+ /// Undefined/unknown color format
CF_UNKNOWN = 0,
/**
- * 24-bit colour format (R8G8B8)
+ * 24-bit color format (R8G8B8)
*/
CF_RGB24,
/**
- * 32-bit colour format (A8R8G8B8) (little endian)
+ * 32-bit color format (A8R8G8B8) (little endian)
*/
CF_ARGB32,
/**
- 32-bit colour format (A8B8G8R8) (little endian)
+ 32-bit color format (A8B8G8R8) (little endian)
*/
CF_ABGR32
};
@@ -149,7 +149,7 @@
* called for every frame.
* @param Start The starting point of the line
* @param End The ending point of the line
- * @param Color The colour of the line. The default is BS_RGB (255,255,255) (White)
+ * @param Color The color of the line. The default is BS_RGB (255,255,255) (White)
*/
void drawDebugLine(const Vertex &start, const Vertex &end, uint color = BS_RGB(255, 255, 255));
@@ -168,7 +168,7 @@
* after a call to EndFrame(), and before the next call to StartFrame().
* @param Width Returns the width of the frame buffer
* @param Height Returns the height of the frame buffer
- * @param Data Returns the raw data of the frame buffer as an array of 32-bit colour values.
+ * @param Data Returns the raw data of the frame buffer as an array of 32-bit color values.
*/
Graphics::Surface *getScreenshot();
@@ -256,12 +256,12 @@
}
/**
- * Fills a rectangular area of the frame buffer with a colour.
- * Notes: It is possible to create transparent rectangles by passing a colour with an Alpha value of 255.
+ * Fills a rectangular area of the frame buffer with a color.
+ * Notes: It is possible to create transparent rectangles by passing a color with an Alpha value of 255.
* @param FillRectPtr Pointer to a Common::Rect, which specifies the section of the frame buffer to be filled.
* If the rectangle falls partly off-screen, then it is automatically trimmed.
* If a NULL value is passed, then the entire image is to be filled.
- * @param Color The 32-bit colour with which the area is to be filled. The default is BS_RGB(0, 0, 0) (black)
+ * @param Color The 32-bit color with which the area is to be filled. The default is BS_RGB(0, 0, 0) (black)
* @note FIf the rectangle is not completely inside the screen, it is automatically clipped.
*/
bool fill(const Common::Rect *fillRectPtr = 0, uint color = BS_RGB(0, 0, 0));
@@ -287,9 +287,9 @@
// Access methods
/**
- * Returns the size of a pixel entry in bytes for a particular colour format
- * @param ColorFormat The desired colour format. The parameter must be of type COLOR_FORMATS
- * @return Returns the size of a pixel in bytes. If the colour format is unknown, -1 is returned.
+ * Returns the size of a pixel entry in bytes for a particular color format
+ * @param ColorFormat The desired color format. The parameter must be of type COLOR_FORMATS
+ * @return Returns the size of a pixel in bytes. If the color format is unknown, -1 is returned.
*/
static int getPixelSize(GraphicEngine::COLOR_FORMATS colorFormat) {
switch (colorFormat) {
@@ -301,10 +301,10 @@
}
/**
- * Calculates the length of an image line in bytes, depending on a given colour format.
- * @param ColorFormat The colour format
+ * Calculates the length of an image line in bytes, depending on a given color format.
+ * @param ColorFormat The color format
* @param Width The width of the line in pixels
- * @return Reflects the length of the line in bytes. If the colour format is
+ * @return Reflects the length of the line in bytes. If the color format is
* unknown, -1 is returned
*/
static int calcPitch(GraphicEngine::COLOR_FORMATS colorFormat, int width) {
Modified: scummvm/trunk/engines/sword25/gfx/screenshot.cpp
===================================================================
--- scummvm/trunk/engines/sword25/gfx/screenshot.cpp 2010-11-17 12:21:37 UTC (rev 54287)
+++ scummvm/trunk/engines/sword25/gfx/screenshot.cpp 2010-11-17 12:22:08 UTC (rev 54288)
@@ -97,7 +97,7 @@
data->w, // Width
data->h, // Height
8, // Bits depth
- PNG_COLOR_TYPE_RGB, // Colour type
+ PNG_COLOR_TYPE_RGB, // Color type
PNG_INTERLACE_NONE, // No interlacing
PNG_COMPRESSION_TYPE_DEFAULT, // Compression type
PNG_FILTER_TYPE_DEFAULT); // Filter Type
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list