aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/sys/vesa/screencpy.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-13 21:43:00 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-13 21:43:00 -0800
commitbc0516eb0e186087fefc90bca70fb06998ae7a71 (patch)
treea5bd2fab3b283d398ebf1133245961489d27c037 /com32/lib/sys/vesa/screencpy.c
parent4105dd749cb52ad061dc0eb04a3a821655d6c91f (diff)
downloadsyslinux.git-bc0516eb0e186087fefc90bca70fb06998ae7a71.tar.gz
syslinux.git-bc0516eb0e186087fefc90bca70fb06998ae7a71.tar.xz
syslinux.git-bc0516eb0e186087fefc90bca70fb06998ae7a71.zip
Bypass pixel conversion when the output format is BGRA32
When the output format is BGRA32, we don't need any conversion at all. Skip the dummy copy.
Diffstat (limited to 'com32/lib/sys/vesa/screencpy.c')
-rw-r--r--com32/lib/sys/vesa/screencpy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/com32/lib/sys/vesa/screencpy.c b/com32/lib/sys/vesa/screencpy.c
index 837499e2..ac9b24ea 100644
--- a/com32/lib/sys/vesa/screencpy.c
+++ b/com32/lib/sys/vesa/screencpy.c
@@ -98,9 +98,8 @@ void __vesacon_copy_to_screen(size_t dst, const uint32_t *src, size_t npixels)
char rowbuf[bytes+4];
const char *s;
- __vesacon_format_pixels(rowbuf, src, npixels);
+ s = (const char *)__vesacon_format_pixels(rowbuf, src, npixels);
- s = rowbuf;
while (bytes) {
win_off = dst & omask;
win_pos = dst & ~omask;