- }
- image += line - w;
- }
- } else {
- for (i = h; i > 0; i--) {
- for (j = w; j > 0; j--) {
- if (stipple++ & 1) {
- *(image++) = (pixel >> 0) & 0xff;
- *(image++) = (pixel >> 8) & 0xff;
- *(image++) = (pixel >> 16) & 0xff;
- if (bitmapPad == 32) {
- image++;
- }
+ if (solid || stipple++ & 1) {
+ *(image++) = (pixel >> 16) & 0xff;
+ *(image++) = (pixel >> 8) & 0xff;
+ *(image++) = (pixel >> 0) & 0xff;
+ } else {
+ image += 3;
+ }
+ } else {
+ if (solid || stipple++ & 1) {
+ *(image++) = (pixel >> 0) & 0xff;
+ *(image++) = (pixel >> 8) & 0xff;
+ *(image++) = (pixel >> 16) & 0xff;
+ } else {
+ image += 3;
+ }
+ if (pixelBytes == 4) {
+ image++;