Set order of pixels in 1 bit color mode to least significant -> most significant. That's the same as in three-pass mode.

Henning Meier-Geinitz <henning@meier-geinitz.de>
DEVEL_2_0_BRANCH-1
Henning Geinitz 2002-04-02 21:42:48 +00:00
rodzic 99691b8785
commit fd73a53e6a
2 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -1,6 +1,8 @@
2002-04-02 Henning Meier-Geinitz <henning@meier-geinitz.de> 2002-04-02 Henning Meier-Geinitz <henning@meier-geinitz.de>
* 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 <henning@meier-geinitz.de> 2002-04-01 Henning Meier-Geinitz <henning@meier-geinitz.de>

Wyświetl plik

@ -570,11 +570,11 @@ input_available (gpointer data, gint source, GdkInputCondition cond)
{ {
u_char mask = buf[i]; 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; u_char gl = (mask & (1 << j)) ? 0xff : 0x00;
p->image_data[p->image_offset] = gl; p->image_data[p->image_offset] = gl;
if (j > 0) if (j < 7)
p->image_offset += 3; p->image_offset += 3;
else else
{ {