Fix Banshee host data size when source format is 1 bpp. Fixes some
bad icon masks in Windows 98.
This commit is contained in:
parent
133f19fe39
commit
11b29c7c18
1 changed files with 6 additions and 1 deletions
|
|
@ -561,7 +561,12 @@ static void banshee_do_host_to_screen_blt(voodoo_t *voodoo, int count, uint32_t
|
|||
|
||||
if ((voodoo->banshee_blt.srcFormat & SRC_FORMAT_PACKING_MASK) == SRC_FORMAT_PACKING_STRIDE)
|
||||
{
|
||||
int last_byte = (voodoo->banshee_blt.srcX & 3) + voodoo->banshee_blt.host_data_size_dest;
|
||||
int last_byte;
|
||||
|
||||
if ((voodoo->banshee_blt.srcFormat & SRC_FORMAT_COL_MASK) == SRC_FORMAT_COL_1_BPP)
|
||||
last_byte = (((voodoo->banshee_blt.srcX + 7) >> 3) & 3) + voodoo->banshee_blt.host_data_size_dest;
|
||||
else
|
||||
last_byte = (voodoo->banshee_blt.srcX & 3) + voodoo->banshee_blt.host_data_size_dest;
|
||||
|
||||
*(uint32_t *)&voodoo->banshee_blt.host_data[voodoo->banshee_blt.host_data_count] = data;
|
||||
voodoo->banshee_blt.host_data_count += 4;
|
||||
|
|
|
|||
Loading…
Reference in a new issue