diff options
author | tron <tron@openttd.org> | 2005-09-08 12:48:26 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-09-08 12:48:26 +0000 |
commit | 45ca3b6336f1c6e7c2991319837132b607d482dc (patch) | |
tree | 3f41cacc0471e60af369fc95349585751ff00335 /gfx.c | |
parent | d73d12ae8a75dc15a233bb2b0749165aca263e23 (diff) | |
download | openttd-45ca3b6336f1c6e7c2991319837132b607d482dc.tar.xz |
(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
Diffstat (limited to 'gfx.c')
-rw-r--r-- | gfx.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |