X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Finclude%2Fzbmpop16p.h;fp=src%2Finclude%2Fzbmpop16p.h;h=0000000000000000000000000000000000000000;hb=135a0c52a2bcbcc37192c61801de6e9c80aeebff;hp=85fae45dd627ac95910c14f88f813e50762eeecc;hpb=6283b73b183c64962f95d0e3750456de48468854;p=virtualjaguar diff --git a/src/include/zbmpop16p.h b/src/include/zbmpop16p.h deleted file mode 100644 index 85fae45..0000000 --- a/src/include/zbmpop16p.h +++ /dev/null @@ -1,130 +0,0 @@ - if (flags&FLAGS_READMODIFY) - { - if (flags&FLAGS_HFLIP) - { - if (flags&FLAGS_TRANSPARENT) - { - while (scaled_width) - { - uint16 c=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+0);; - c<<=8; - c|=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+1); - if (c) - { - *current_line_buffer--=BLEND_Y(*current_line_buffer,(c>>8)); - *current_line_buffer--=BLEND_CC(*current_line_buffer,(c&0xff)); - } - else - current_line_buffer-=2; - cnt+=hscale_fixed; - scaled_width--; - } - } - else - { - while (scaled_width) - { - *current_line_buffer--=BLEND_Y(*current_line_buffer,jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+0)); - *current_line_buffer--=BLEND_CC(*current_line_buffer,jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+1)); - cnt+=hscale_fixed; - scaled_width--; - } - } - } - else - { - if (flags&FLAGS_TRANSPARENT) - { - while (scaled_width) - { - uint16 c=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+0);; - c<<=8; - c|=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+1); - if (c) - { - *current_line_buffer++=BLEND_Y(*current_line_buffer,(c>>8)); - *current_line_buffer++=BLEND_CC(*current_line_buffer,(c&0xff)); - } - else - current_line_buffer+=2; - cnt+=hscale_fixed; - scaled_width--; - } - } - else - { - while (scaled_width) - { - *current_line_buffer++=BLEND_Y(*current_line_buffer,jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+0)); - *current_line_buffer++=BLEND_CC(*current_line_buffer,jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+1)); - cnt+=hscale_fixed; - scaled_width--; - } - } - } - } - else - { - if (flags&FLAGS_HFLIP) - { - if (flags&FLAGS_TRANSPARENT) - { - while (scaled_width) - { - uint16 c=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+0);; - c<<=8; - c|=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+1); - if (c) - { - *current_line_buffer--=(c>>8); - *current_line_buffer--=(c&0xff); - } - else - current_line_buffer-=2; - cnt+=hscale_fixed; - scaled_width--; - } - } - else - { - while (scaled_width) - { - *current_line_buffer--=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+0); - *current_line_buffer--=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+1); - cnt+=hscale_fixed; - scaled_width--; - } - } - } - else - { - if (flags&FLAGS_TRANSPARENT) - { - while (scaled_width) - { - uint16 c=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+0);; - c<<=8; - c|=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+1); - if (c) - { - *current_line_buffer++=(c>>8); - *current_line_buffer++=(c&0xff); - } - else - current_line_buffer+=2; - cnt+=hscale_fixed; - scaled_width--; - } - } - else - { - while (scaled_width) - { - *current_line_buffer++=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+0); - *current_line_buffer++=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+1); - cnt+=hscale_fixed; - scaled_width--; - } - } - } - }