summaryrefslogtreecommitdiff
path: root/src/gfx.cpp
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2007-11-19 21:02:30 +0000
committerskidd13 <skidd13@openttd.org>2007-11-19 21:02:30 +0000
commitc0a2c0c23e129cb81400c5204fc9d0eedd9afb85 (patch)
tree21212e0b25777aac62f30d88b981e2bd624c4616 /src/gfx.cpp
parent7a4d96f629a9bd447846f8569fad78cf8e5196c5 (diff)
downloadopenttd-c0a2c0c23e129cb81400c5204fc9d0eedd9afb85.tar.xz
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
Diffstat (limited to 'src/gfx.cpp')
-rw-r--r--src/gfx.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp
index c8152e677..6a7cb51e3 100644
--- a/src/gfx.cpp
+++ b/src/gfx.cpp
@@ -105,8 +105,8 @@ void GfxFillRect(int left, int top, int right, int bottom, int color)
dst = blitter->MoveTo(dpi->dst_ptr, left, top);
- if (!HASBIT(color, PALETTE_MODIFIER_GREYOUT)) {
- if (!HASBIT(color, USE_COLORTABLE)) {
+ if (!HasBit(color, PALETTE_MODIFIER_GREYOUT)) {
+ if (!HasBit(color, USE_COLORTABLE)) {
blitter->DrawRect(dst, right, bottom, (uint8)color);
} else {
blitter->DrawColorMappingRect(dst, right, bottom, GB(color, 0, PALETTE_WIDTH));
@@ -654,7 +654,7 @@ int DoDrawStringTruncated(const char *str, int x, int y, uint16 color, uint maxw
void DrawSprite(SpriteID img, SpriteID pal, int x, int y, const SubSprite *sub)
{
- if (HASBIT(img, PALETTE_MODIFIER_TRANSPARENT)) {
+ if (HasBit(img, PALETTE_MODIFIER_TRANSPARENT)) {
_color_remap_ptr = GetNonSprite(GB(pal, 0, PALETTE_WIDTH)) + 1;
GfxMainBlitter(GetSprite(GB(img, 0, SPRITE_WIDTH)), x, y, BM_TRANSPARENT, sub);
} else if (pal != PAL_NONE) {