1 if (flags&FLAGS_READMODIFY)
\r
3 if (flags&FLAGS_HFLIP)
\r
5 if (flags&FLAGS_TRANSPARENT)
\r
9 uint16 c=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+0);;
\r
11 c|=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+1);
\r
14 *current_line_buffer--=BLEND_Y(*current_line_buffer,(c>>8));
\r
15 *current_line_buffer--=BLEND_CC(*current_line_buffer,(c&0xff));
\r
18 current_line_buffer-=2;
\r
25 while (scaled_width)
\r
27 *current_line_buffer--=BLEND_Y(*current_line_buffer,jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+0));
\r
28 *current_line_buffer--=BLEND_CC(*current_line_buffer,jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+1));
\r
36 if (flags&FLAGS_TRANSPARENT)
\r
38 while (scaled_width)
\r
40 uint16 c=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+0);;
\r
42 c|=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+1);
\r
45 *current_line_buffer++=BLEND_Y(*current_line_buffer,(c>>8));
\r
46 *current_line_buffer++=BLEND_CC(*current_line_buffer,(c&0xff));
\r
49 current_line_buffer+=2;
\r
56 while (scaled_width)
\r
58 *current_line_buffer++=BLEND_Y(*current_line_buffer,jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+0));
\r
59 *current_line_buffer++=BLEND_CC(*current_line_buffer,jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+1));
\r
68 if (flags&FLAGS_HFLIP)
\r
70 if (flags&FLAGS_TRANSPARENT)
\r
72 while (scaled_width)
\r
74 uint16 c=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+0);;
\r
76 c|=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+1);
\r
79 *current_line_buffer--=(c>>8);
\r
80 *current_line_buffer--=(c&0xff);
\r
83 current_line_buffer-=2;
\r
90 while (scaled_width)
\r
92 *current_line_buffer--=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+0);
\r
93 *current_line_buffer--=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+1);
\r
101 if (flags&FLAGS_TRANSPARENT)
\r
103 while (scaled_width)
\r
105 uint16 c=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+0);;
\r
107 c|=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+1);
\r
110 *current_line_buffer++=(c>>8);
\r
111 *current_line_buffer++=(c&0xff);
\r
114 current_line_buffer+=2;
\r
121 while (scaled_width)
\r
123 *current_line_buffer++=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+0);
\r
124 *current_line_buffer++=jaguar_byte_read(ptr+((((cnt>>16) & (~0x3))*pitch)+((cnt>>16)&0x3)<<1)+1);
\r