From c2de9613a659a3e47e6a8c2ed6ee3fd3cdbfdb6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 18 Mar 2008 20:45:07 +0000 Subject: [PATCH] Fixed 32 bit versions of blit*. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24450 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/boot/platform/bios_ia32/video.cpp | 2 +- src/system/kernel/splash.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/boot/platform/bios_ia32/video.cpp b/src/system/boot/platform/bios_ia32/video.cpp index df59a8ed48..6f871a6732 100644 --- a/src/system/boot/platform/bios_ia32/video.cpp +++ b/src/system/boot/platform/bios_ia32/video.cpp @@ -556,7 +556,7 @@ blit32(const uint8 *data, uint16 width, uint16 height, uint16 left, uint16 top) const uint8* src = data; uint32* dst = start; for (int32 x = 0; x < width; x++) { - dst[0] = (src[0] << 16) | (src[1] << 8) | (src[2]); + dst[0] = (src[0] << 24) | (src[1] << 16) | (src[2] << 8); dst++; src += 3; } diff --git a/src/system/kernel/splash.cpp b/src/system/kernel/splash.cpp index ee3ca761aa..5236d845af 100644 --- a/src/system/kernel/splash.cpp +++ b/src/system/kernel/splash.cpp @@ -300,7 +300,7 @@ boot_splash_fb_blit32_cropped(const uint8 *data, uint16 imageLeft, const uint8* src = data; uint32* dst = start; for (int32 x = imageLeft; x < imageRight; x++) { - dst[0] = (src[0] << 16) | (src[1] << 8) | (src[2]); + dst[0] = (src[0] << 24) | (src[1] << 16) | (src[2] << 8); dst++; src += 3; }