X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Finclude%2Ffbmpop4p.h;fp=src%2Finclude%2Ffbmpop4p.h;h=0000000000000000000000000000000000000000;hb=fa566a2c8ec532eb5325b4d5a663fb2a7d72adc6;hp=ec2091d13e9b6c7f3522fcdd61dd1316d900f739;hpb=1d5f61c81bd6a213debf733970575154da696f23;p=virtualjaguar diff --git a/src/include/fbmpop4p.h b/src/include/fbmpop4p.h deleted file mode 100644 index ec2091d..0000000 --- a/src/include/fbmpop4p.h +++ /dev/null @@ -1,221 +0,0 @@ - int count=0; - uint32 c; - paletteRam+=idx*4; - if (flags&FLAGS_READMODIFY) - { - if (flags&FLAGS_HFLIP) - { - if (flags&FLAGS_TRANSPARENT) - { - while (iwidth) - { - c=jaguar_byte_read(ptr++); - uint32 cl=c>>4; - uint32 ch=c&0x0f; - if (cl) - { - *current_line_buffer--=BLEND_Y(*current_line_buffer,paletteRam[(cl<<1)+0]); - *current_line_buffer--=BLEND_CC(*current_line_buffer,paletteRam[(cl<<1)+1]); - } - else - current_line_buffer-=2; - if (ch) - { - *current_line_buffer--=BLEND_Y(*current_line_buffer,paletteRam[(ch<<1)+0]); - *current_line_buffer--=BLEND_CC(*current_line_buffer,paletteRam[(ch<<1)+1]); - } - else - current_line_buffer-=2; - count+=1; - if (count==8) // 8 bytes = a phrase (64 bits) - { - ptr-=8*(pitch-1); - count=0; - } - iwidth--; - } - } - else - { - while (iwidth) - { - c=jaguar_byte_read(ptr++); - uint32 cl=c>>4; - uint32 ch=c&0x0f; - *current_line_buffer--=BLEND_Y(*current_line_buffer,paletteRam[(cl<<1)+0]); - *current_line_buffer--=BLEND_CC(*current_line_buffer,paletteRam[(cl<<1)+1]); - *current_line_buffer--=BLEND_Y(*current_line_buffer,paletteRam[(ch<<1)+0]); - *current_line_buffer--=BLEND_CC(*current_line_buffer,paletteRam[(ch<<1)+1]); - count+=1; - if (count==8) // 8 bytes = a phrase (64 bits) - { - ptr-=8*(pitch-1); - count=0; - } - iwidth--; - } - } - } - else - { - if (flags&FLAGS_TRANSPARENT) - { - while (iwidth) - { - c=jaguar_byte_read(ptr++); - uint32 cl=c>>4; - uint32 ch=c&0x0f; - if (cl) - { - *current_line_buffer++=BLEND_Y(*current_line_buffer,paletteRam[(cl<<1)+0]); - *current_line_buffer++=BLEND_CC(*current_line_buffer,paletteRam[(cl<<1)+1]); - } - else - current_line_buffer+=2; - if (ch) - { - *current_line_buffer++=BLEND_Y(*current_line_buffer,paletteRam[(ch<<1)+0]); - *current_line_buffer++=BLEND_CC(*current_line_buffer,paletteRam[(ch<<1)+1]); - } - else - current_line_buffer+=2; - count+=1; - if (count==8) // 8 bytes = a phrase (64 bits) - { - ptr+=8*(pitch-1); - count=0; - } - iwidth--; - } - } - else - { - while (iwidth) - { - c=jaguar_byte_read(ptr++); - uint32 cl=c>>4; - uint32 ch=c&0x0f; - *current_line_buffer++=BLEND_Y(*current_line_buffer,paletteRam[(cl<<1)+0]); - *current_line_buffer++=BLEND_CC(*current_line_buffer,paletteRam[(cl<<1)+1]); - *current_line_buffer++=BLEND_Y(*current_line_buffer,paletteRam[(ch<<1)+0]); - *current_line_buffer++=BLEND_CC(*current_line_buffer,paletteRam[(ch<<1)+1]); - iwidth--; - count+=1; - if (count==8) // 8 bytes = a phrase (64 bits) - { - ptr+=8*(pitch-1); - count=0; - } - } - } - } - } - else - { - if (flags&FLAGS_HFLIP) - { - if (flags&FLAGS_TRANSPARENT) - { - while (iwidth) - { - c=jaguar_byte_read(ptr++); - uint32 cl=c>>4; - uint32 ch=c&0x0f; - if (cl) - { - *current_line_buffer--=paletteRam[(cl<<1)+0]; - *current_line_buffer--=paletteRam[(cl<<1)+1]; - } - else - current_line_buffer-=2; - if (ch) - { - *current_line_buffer--=paletteRam[(ch<<1)+0]; - *current_line_buffer--=paletteRam[(ch<<1)+1]; - } - else - current_line_buffer-=2; - count+=1; - if (count==8) // 8 bytes = a phrase (64 bits) - { - ptr-=8*(pitch-1); - count=0; - } - iwidth--; - } - } - else - { - while (iwidth) - { - c=jaguar_byte_read(ptr++); - uint32 cl=c>>4; - uint32 ch=c&0x0f; - *current_line_buffer--=paletteRam[(cl<<1)+0]; - *current_line_buffer--=paletteRam[(cl<<1)+1]; - *current_line_buffer--=paletteRam[(ch<<1)+0]; - *current_line_buffer--=paletteRam[(ch<<1)+1]; - count+=1; - if (count==8) // 8 bytes = a phrase (64 bits) - { - ptr-=8*(pitch-1); - count=0; - } - iwidth--; - } - } - } - else - { - if (flags&FLAGS_TRANSPARENT) - { - while (iwidth) - { - c=jaguar_byte_read(ptr++); - uint32 cl=c>>4; - uint32 ch=c&0x0f; - if (cl) - { - *current_line_buffer++=paletteRam[(cl<<1)+0]; - *current_line_buffer++=paletteRam[(cl<<1)+1]; - } - else - current_line_buffer+=2; - if (ch) - { - *current_line_buffer++=paletteRam[(ch<<1)+0]; - *current_line_buffer++=paletteRam[(ch<<1)+1]; - } - else - current_line_buffer+=2; - count+=1; - if (count==8) // 8 bytes = a phrase (64 bits) - { - ptr+=8*(pitch-1); - count=0; - } - iwidth--; - } - } - else - { - while (iwidth) - { - c=jaguar_byte_read(ptr++); - uint32 cl=c>>4; - uint32 ch=c&0x0f; - *current_line_buffer++=paletteRam[(cl<<1)+0]; - *current_line_buffer++=paletteRam[(cl<<1)+1]; - *current_line_buffer++=paletteRam[(ch<<1)+0]; - *current_line_buffer++=paletteRam[(ch<<1)+1]; - count+=1; - if (count==8) // 8 bytes = a phrase (64 bits) - { - ptr+=8*(pitch-1); - count=0; - } - iwidth--; - } - } - } - }