diff --git a/src/zm_image.cpp b/src/zm_image.cpp index fb10126f5..24a323829 100644 --- a/src/zm_image.cpp +++ b/src/zm_image.cpp @@ -624,8 +624,10 @@ void Image::Hatch( Rgb colour, const Box *limits ) unsigned char *p = buffer; for ( int y = lo_y; y <= hi_y; y++ ) { + unsigned char *p = &buffer[colours*((y*width)+lo_x)]; for ( int x = lo_x; x <= hi_x; x++, p += colours ) { + //if ( ( (x == lo_x || x == hi_x) && (y >= lo_y && y <= hi_y) ) //|| ( (y == lo_y || y == hi_y) && (x >= lo_x && x <= hi_x) ) //|| ( (x > lo_x && x < hi_x && y > lo_y && y < hi_y) && !(x%2) && !(y%2) ) )