From 45ca3b6336f1c6e7c2991319837132b607d482dc Mon Sep 17 00:00:00 2001 From: tron Date: Thu, 8 Sep 2005 12:48:26 +0000 Subject: (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 --- screenshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'screenshot.c') 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'); -- cgit v1.2.3-54-g00ecf