]> Shamusworld >> Repos - virtualjaguar/blob - src/include/fbmpop24.h
Adding 1.0.1/2 uncompressed tarballs to tags for historical purposes.
[virtualjaguar] / src / include / fbmpop24.h
1                 if (flags&FLAGS_HFLIP)\r
2                 {\r
3                         if (flags&FLAGS_TRANSPARENT)\r
4                         {\r
5                                 while (iwidth)\r
6                                 {\r
7                                         uint32 data=jaguar_byte_read(ptr++);\r
8                                         data<<=8;\r
9                                         data|=jaguar_byte_read(ptr++);\r
10                                         data<<=8;\r
11                                         data|=jaguar_byte_read(ptr++);\r
12                                         data<<=8;\r
13                                         data|=jaguar_byte_read(ptr++);\r
14                                         if (data)\r
15                                         {\r
16                                                 *current_line_buffer--=(data>>24)&0xff;\r
17                                                 *current_line_buffer--=(data>>16)&0xff;\r
18                                                 *current_line_buffer--=(data>> 8)&0xff;\r
19                                                 *current_line_buffer--=data      &0xff;\r
20                                         }\r
21                                         else\r
22                                                 current_line_buffer-=4;\r
23                                         iwidth--;\r
24                                 }\r
25                         }\r
26                         else\r
27                         {\r
28                                 while (iwidth)\r
29                                 {\r
30                                         *current_line_buffer++=jaguar_byte_read(ptr++);\r
31                                         *current_line_buffer++=jaguar_byte_read(ptr++);\r
32                                         *current_line_buffer++=jaguar_byte_read(ptr++);\r
33                                         *current_line_buffer++=jaguar_byte_read(ptr++);\r
34                                         iwidth--;\r
35                                 }\r
36                         }\r
37                 }\r
38                 else\r
39                 {\r
40                         if (flags&FLAGS_TRANSPARENT)\r
41                         {\r
42                                 while (iwidth)\r
43                                 {\r
44                                         uint32 data=jaguar_byte_read(ptr++);\r
45                                         data<<=8;\r
46                                         data|=jaguar_byte_read(ptr++);\r
47                                         data<<=8;\r
48                                         data|=jaguar_byte_read(ptr++);\r
49                                         data<<=8;\r
50                                         data|=jaguar_byte_read(ptr++);\r
51                                         if (data)\r
52                                         {\r
53                                                 *current_line_buffer++=(data>>24)&0xff;\r
54                                                 *current_line_buffer++=(data>>16)&0xff;\r
55                                                 *current_line_buffer++=(data>> 8)&0xff;\r
56                                                 *current_line_buffer++=data      &0xff;\r
57                                         }\r
58                                         else\r
59                                                 current_line_buffer+=4;\r
60                                         iwidth--;\r
61                                 }\r
62                         }\r
63                         else\r
64                         {\r
65                                 while (iwidth)\r
66                                 {\r
67                                         *current_line_buffer++=jaguar_byte_read(ptr++);\r
68                                         *current_line_buffer++=jaguar_byte_read(ptr++);\r
69                                         *current_line_buffer++=jaguar_byte_read(ptr++);\r
70                                         *current_line_buffer++=jaguar_byte_read(ptr++);\r
71                                         iwidth--;\r
72                                 }\r
73                         }\r
74                 }\r