Fixed 32 bit blit modes for real...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24453 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2008-03-18 21:41:02 +00:00
parent b20d05b4f7
commit a529aaf3c6
2 changed files with 2 additions and 2 deletions

View File

@ -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] << 24) | (src[1] << 16) | (src[2] << 8);
dst[0] = (src[2] << 16) | (src[1] << 8) | (src[0]);
dst++;
src += 3;
}

View File

@ -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] << 24) | (src[1] << 16) | (src[2] << 8);
dst[0] = (src[2] << 16) | (src[1] << 8) | (src[0]);
dst++;
src += 3;
}