(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 0f08a1c694
commit c20b5883bd
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');