summaryrefslogtreecommitdiff
path: root/screenshot.c
diff options
context:
space:
mode:
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');