kopia lustrzana https://gitlab.com/sane-project/frontends
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
rodzic
99691b8785
commit
fd73a53e6a
|
@ -1,6 +1,8 @@
|
|||
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>
|
||||
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Ładowanie…
Reference in New Issue