aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-14 00:02:12 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-14 00:02:12 -0800
commit91c8955e892f7a855de875e42026fdcb5a117d42 (patch)
treeef0ca67a2740137f493f080e8695c131171a2b7d
parentd1bf83be601ec71c32f1e5ebe511f42f5e44195f (diff)
downloadsyslinux-elf-91c8955e892f7a855de875e42026fdcb5a117d42.tar.gz
syslinux-elf-91c8955e892f7a855de875e42026fdcb5a117d42.tar.xz
syslinux-elf-91c8955e892f7a855de875e42026fdcb5a117d42.zip
VESA: align the row buffer to a multiple of 4 bytes.
We do dword accesses to the row buffer, so align it to 4 bytes.
-rw-r--r--com32/lib/sys/vesa/screencpy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/sys/vesa/screencpy.c b/com32/lib/sys/vesa/screencpy.c
index 4972eea7..a3043fd4 100644
--- a/com32/lib/sys/vesa/screencpy.c
+++ b/com32/lib/sys/vesa/screencpy.c
@@ -100,7 +100,7 @@ void __vesacon_copy_to_screen(size_t dst, const uint32_t *src, size_t npixels)
char *win_base = wi.win_base;
size_t l;
size_t bytes = npixels * __vesacon_bytes_per_pixel;
- char rowbuf[bytes+4];
+ char rowbuf[bytes+4] __aligned(4);
const char *s;
s = (const char *)__vesacon_format_pixels(rowbuf, src, npixels);