Unified · Split
| @@ -780,7 +780,7 @@ bitpixel(BitmapGlyph *bg, int x, int y) · 779 unmodified lines | ||
| 780 | 780 | x = i - (i & ~7); |
| 781 | 781 | else |
| 782 | 782 | x &= 7; |
| 783 | − return (bg->image[i>>3] & (0x80>>x)) ? 0 : 255; | |
| 783 | + return (bg->image[i>>3] & (0x80>>x)) ? 255 : 0; | |
| 784 | 784 | }else if(bg->bitDepth == 4){ |
| 785 | 785 | /* FIXME */ |
| 786 | 786 | assert(nil); |
| @@ -129,11 +129,9 @@ dumpmap(Otfile *f, GlyfImage **im, int n) · 128 unmodified lines | ||
| 129 | 129 | g = 0xff - g; |
| 130 | 130 | b = 0xff - b; |
| 131 | 131 | } |
| 132 | − if(r != 0xff || g != 0xff || b != 0xff){ | |
| 133 | − lt[t*3+0] = b; | |
| 134 | − lt[t*3+1] = g; | |
| 135 | − lt[t*3+2] = r; | |
| 136 | − } | |
| 132 | + lt[t*3+0] = b; | |
| 133 | + lt[t*3+1] = g; | |
| 134 | + lt[t*3+2] = r; | |
| 137 | 135 | } |
| 138 | 136 | } |
| 139 | 137 | } |