From bc0516eb0e186087fefc90bca70fb06998ae7a71 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 13 Feb 2008 21:43:00 -0800 Subject: 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. --- com32/lib/sys/vesa/screencpy.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'com32/lib/sys/vesa/screencpy.c') 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; -- cgit