We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a45a48a commit 3e194bdCopy full SHA for 3e194bd
1 file changed
src/common/fb.nim
@@ -50,11 +50,11 @@ proc fbscreenshot*(fbMap: pointer, output: string) =
50
51
for x in 0..<FbWidth:
52
let colBase = x * FbHeight
53
- var srcBase = x * 2
+ var srcBase = x
54
55
for y in 0..<FbHeight:
56
let pixel = fbData[srcBase]
57
- srcBase += FbWidth * 2
+ srcBase += FbWidth
58
59
rotatedPixels[colBase + FbHeight - 1 - y] = uint32(FiveToEight[(pixel shr 11) and 0x1F]) or
60
(uint32(SixToEight[(pixel shr 5) and 0x3F]) shl 8) or
0 commit comments