ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtimg.C
(Generate patch)

Comparing rxvt-unicode/src/rxvtimg.C (file contents):
Revision 1.48 by root, Thu Jun 7 19:24:02 2012 UTC vs.
Revision 1.49 by root, Thu Jun 7 19:24:13 2012 UTC

110 unsigned char *data = row; 110 unsigned char *data = row;
111 111
112 if (depth == 24) 112 if (depth == 24)
113 for (int x = 0; x < width; x++) 113 for (int x = 0; x < width; x++)
114 { 114 {
115 asm volatile("nop");
116 r = *data++; 115 r = *data++;
117 g = *data++; 116 g = *data++;
118 b = *data++; 117 b = *data++;
119 *line++ = 0; 118 *line++ = 0;
120 *line++ = r; 119 *line++ = r;
121 *line++ = g; 120 *line++ = g;
122 *line++ = b; 121 *line++ = b;
123 asm volatile("nop");
124 } 122 }
125 else 123 else
126 for (int x = 0; x < width; x++) 124 for (int x = 0; x < width; x++)
127 { 125 {
128 uint32_t v = *(uint32_t *)data; data += 4; 126 uint32_t v = *(uint32_t *)data; data += 4;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines