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 --- gfx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gfx.c') diff --git a/gfx.c b/gfx.c index d22d864c7..38c6cd009 100644 --- a/gfx.c +++ b/gfx.c @@ -1755,8 +1755,8 @@ void RedrawScreenRect(int left, int top, int right, int bottom) void DrawDirtyBlocks(void) { byte *b = _dirty_blocks; - const int w = (_screen.width + 63) & ~63; - const int h = (_screen.height + 7) & ~7; + const int w = ALIGN(_screen.width, 64); + const int h = ALIGN(_screen.height, 8); int x; int y; -- cgit v1.2.3-70-g09d2