issue #1005, fixed XBM2 PBM2 procedures

This commit is contained in:
kraus 2019-10-02 19:40:04 +02:00
parent e36ebdf696
commit b2e106aff3
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ uint8_t u8x8_capture_GetPixel2(u8x8_capture_t *capture, uint16_t x, uint16_t y)
return 0;
dest_ptr += y*capture->tile_width;
dest_ptr += x>>3;
if ( (*dest_ptr & (128>>x)) == 0 )
if ( (*dest_ptr & (128>>(x&7))) == 0 )
return 0;
return 1;
}