aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
Diffstat (limited to 'com32')
-rw-r--r--com32/include/syslinux/firmware.h2
-rw-r--r--com32/lib/sys/vesa/screencpy.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/com32/include/syslinux/firmware.h b/com32/include/syslinux/firmware.h
index 268e0c80..13ba1591 100644
--- a/com32/include/syslinux/firmware.h
+++ b/com32/include/syslinux/firmware.h
@@ -33,7 +33,7 @@ struct win_info;
struct vesa_ops {
int (*set_mode)(struct vesa_info *, int *, int *, enum vesa_pixel_format *);
- void (*screencpy)(size_t, const char *, size_t, struct win_info *);
+ void (*screencpy)(size_t, const uint32_t *, size_t, struct win_info *);
int (*font_query)(uint8_t **);
};
diff --git a/com32/lib/sys/vesa/screencpy.c b/com32/lib/sys/vesa/screencpy.c
index 5c6d9151..d78109bc 100644
--- a/com32/lib/sys/vesa/screencpy.c
+++ b/com32/lib/sys/vesa/screencpy.c
@@ -70,8 +70,8 @@ void __vesacon_copy_to_screen(size_t dst, const uint32_t * src, size_t npixels)
{
size_t bytes = npixels * __vesacon_bytes_per_pixel;
char rowbuf[bytes + 4] __aligned(4);
- const char *s;
+ const uint32_t *s;
- s = (const char *)__vesacon_format_pixels(rowbuf, src, npixels);
+ s = (const uint32_t *)__vesacon_format_pixels(rowbuf, src, npixels);
firmware->vesa->screencpy(dst, s, bytes, &wi);
}