- if (solid) {
- for (i = h; i > 0; i--) {
- for (j = w; j > 0; j--) {
- *image = pixel;
- image++;
- }
- image += line - w;
- }
- } else {
- for (i = h; i > 0; i--) {
- for (j = w; j > 0; j--) {
- if (stipple++ & 1)
- *image = pixel;
- image++;
+ for (i = h; i > 0; i--) {
+ for (j = w; j > 0; j--) {
+ if (solid || stipple++ & 1) {
+ if (view->x->x_big_endian) {
+ *image = ((pixel & 0xff) << 8) | ((pixel & 0xff00) >> 8);
+ } else {
+ *image = pixel;
+ }