Reading 24 bit images was broken - thanks to BiPolar for finding and reporting this.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11333 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-02-11 03:18:07 +00:00
parent ab78c7cbc5
commit 5fa46a457c
@@ -340,9 +340,9 @@ convert_data_to_bits(ico_dir_entry &entry, ico_bitmap_header &header,
}
case 24:
outRowData[x].red = ((rgba32_color *)line)[x].red;
outRowData[x].green = ((rgba32_color *)line)[x].green;
outRowData[x].blue = ((rgba32_color *)line)[x].blue;
outRowData[x].blue = line[x * 3 + 0];
outRowData[x].green = line[x * 3 + 1];
outRowData[x].red = line[x * 3 + 2];
break;
case 32: