(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

This commit is contained in:
tron
2005-09-08 12:48:26 +00:00
parent d73d12ae8a
commit 45ca3b6336
5 changed files with 12 additions and 6 deletions

View File

@@ -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');