Bug correction: wrong bit order for the pixel shared between two blocks

This commit is contained in:
Christophe Meneboeuf 2016-12-07 23:49:58 +01:00
parent d7cd5f8cef
commit fe0e433b21
2 changed files with 6 additions and 5 deletions

7
.gitignore vendored
View File

@ -1,6 +1,7 @@
./x64
./x86
./RgbToHiRes.vcxproj.user
x64
x86
RgbToHiRes.vcxproj.user
RgbToHiRes.VC.*
*.sln
*.bin
*.asm

View File

@ -34,8 +34,8 @@ namespace RgbToHires {
_data[1] |= (getDibit(source[6]) << 5);
//Middle pixel
auto byte = getDibit(source[3]);
_data[0] |= (((byte>>1) & 0x1) << 6);
_data[1] |= (byte & 0x1);
_data[0] |= ((byte & 0x1) << 6);
_data[1] |= ((byte >> 1) & 0x1);
}