mirror of
https://github.com/Pixinn/Rgb2Hires.git
synced 2024-12-22 16:31:08 +00:00
Bug correction: wrong bit order for the pixel shared between two blocks
This commit is contained in:
parent
d7cd5f8cef
commit
fe0e433b21
7
.gitignore
vendored
7
.gitignore
vendored
@ -1,6 +1,7 @@
|
||||
./x64
|
||||
./x86
|
||||
./RgbToHiRes.vcxproj.user
|
||||
x64
|
||||
x86
|
||||
RgbToHiRes.vcxproj.user
|
||||
RgbToHiRes.VC.*
|
||||
*.sln
|
||||
*.bin
|
||||
*.asm
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user