summaryrefslogtreecommitdiff
path: root/screenshot.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-09-08 12:48:26 +0000
committertron <tron@openttd.org>2005-09-08 12:48:26 +0000
commit45ca3b6336f1c6e7c2991319837132b607d482dc (patch)
tree3f41cacc0471e60af369fc95349585751ff00335 /screenshot.c
parentd73d12ae8a75dc15a233bb2b0749165aca263e23 (diff)
downloadopenttd-45ca3b6336f1c6e7c2991319837132b607d482dc.tar.xz
(svn r2924) Introduce the ALIGN() macro which aligns values to multiples of a power of 2, for exact semantics see the commment in macros.h
Diffstat (limited to 'screenshot.c')
-rw-r--r--screenshot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/screenshot.c b/screenshot.c
index ee5153d3b..ac9a4433f 100644
--- a/screenshot.c
+++ b/screenshot.c
@@ -78,7 +78,7 @@ static bool MakeBmpImage(const char *name, ScreenshotCallback *callb, void *user
if (f == NULL) return false;
// each scanline must be aligned on a 32bit boundary
- padw = (w + 3) & ~3;
+ padw = ALIGN(w, 4);
// setup the file header
bfh.type = TO_LE16('MB');