summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/newgrf_callbacks.h4
-rw-r--r--src/spriteloader/png.cpp4
-rw-r--r--src/table/strgen_tables.h2
-rw-r--r--src/video/win32_v.cpp2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/newgrf_callbacks.h b/src/newgrf_callbacks.h
index 2290bd642..546ba630d 100644
--- a/src/newgrf_callbacks.h
+++ b/src/newgrf_callbacks.h
@@ -311,7 +311,7 @@ enum HouseCallbackMask {
CBM_HOUSE_ANIMATION_NEXT_FRAME = 1, ///< decides next animation frame
CBM_HOUSE_ANIMATION_START_STOP = 2, ///< periodically start/stop the animation
CBM_HOUSE_CONSTRUCTION_STATE_CHANGE = 3, ///< change animation when construction state changes
- CBM_HOUSE_COLOUR = 4, ///< decide the color of the building
+ CBM_HOUSE_COLOUR = 4, ///< decide the colour of the building
CBM_HOUSE_CARGO_ACCEPTANCE = 5, ///< decides amount of cargo acceptance
CBM_HOUSE_ANIMATION_SPEED = 6, ///< decides animation speed
CBM_HOUSE_DESTRUCTION = 7, ///< trigger destruction of building
@@ -377,7 +377,7 @@ enum ObjectCallbackMask {
CBM_OBJ_SLOPE_CHECK = 0, ///< decides slope suitability
CBM_OBJ_ANIMATION_NEXT_FRAME = 1, ///< decides next animation frame
CBM_OBJ_ANIMATION_SPEED = 2, ///< decides animation speed
- CBM_OBJ_COLOUR = 3, ///< decide the color of the building
+ CBM_OBJ_COLOUR = 3, ///< decide the colour of the building
CBM_OBJ_FUND_MORE_TEXT = 4, ///< additional text in fund window
CBM_OBJ_AUTOSLOPE = 5, ///< decides allowance of autosloping
};
diff --git a/src/spriteloader/png.cpp b/src/spriteloader/png.cpp
index abc9592e0..43301616b 100644
--- a/src/spriteloader/png.cpp
+++ b/src/spriteloader/png.cpp
@@ -191,8 +191,8 @@ static bool LoadPNG(SpriteLoader::Sprite *sprite, const char *filename, uint32 i
dst[x].b = 0;
/* Alpha channel is used from the original image (to allow transparency in remap colours) */
extern const byte _palmap_w2d[];
- byte color = row_pointer[x * sizeof(uint8)];
- dst[x].m = win_palette ? _palmap_w2d[color] : color;
+ byte colour = row_pointer[x * sizeof(uint8)];
+ dst[x].m = win_palette ? _palmap_w2d[colour] : colour;
}
} else {
dst[x].r = row_pointer[x * sizeof(uint32) + 0];
diff --git a/src/table/strgen_tables.h b/src/table/strgen_tables.h
index 12c9e17e4..ba852ed60 100644
--- a/src/table/strgen_tables.h
+++ b/src/table/strgen_tables.h
@@ -38,7 +38,7 @@ static const CmdStruct _cmd_structs[] = {
{"TINY_FONT", EmitSingleChar, SCC_TINYFONT, 0, C_NONE},
{"BIG_FONT", EmitSingleChar, SCC_BIGFONT, 0, C_NONE},
- /* Colors */
+ /* Colours */
{"BLUE", EmitSingleChar, SCC_BLUE, 0, C_NONE},
{"SILVER", EmitSingleChar, SCC_SILVER, 0, C_NONE},
{"GOLD", EmitSingleChar, SCC_GOLD, 0, C_NONE},
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp
index ed774fd66..934acc061 100644
--- a/src/video/win32_v.cpp
+++ b/src/video/win32_v.cpp
@@ -176,7 +176,7 @@ static void ClientSizeChanged(int w, int h)
{
/* allocate new dib section of the new size */
if (AllocateDibSection(w, h)) {
- /* mark all palette colors dirty */
+ /* mark all palette colours dirty */
_cur_palette.first_dirty = 0;
_cur_palette.count_dirty = 256;
_local_palette = _cur_palette;