diff --git a/Changelog b/Changelog index 6eac258..f00c746 100644 --- a/Changelog +++ b/Changelog @@ -1,6 +1,8 @@ 2002-04-02 Henning Meier-Geinitz - * src/preview.c: Used guint types instead of u_int. + * src/preview.c: Used guint types instead of u_int. Set order of pixels + in 1 bit color mode to least significant -> most significant. + That's the same as in three-pass mode. 2002-04-01 Henning Meier-Geinitz diff --git a/src/preview.c b/src/preview.c index 4a6fd7d..0f73856 100644 --- a/src/preview.c +++ b/src/preview.c @@ -570,11 +570,11 @@ input_available (gpointer data, gint source, GdkInputCondition cond) { u_char mask = buf[i]; - for (j = 7; j >= 0; --j) + for (j = 0; j < 8; ++j) { u_char gl = (mask & (1 << j)) ? 0xff : 0x00; p->image_data[p->image_offset] = gl; - if (j > 0) + if (j < 7) p->image_offset += 3; else {