From 5168c4984b386d49cd4bb67c5bc264d15c99b3ec Mon Sep 17 00:00:00 2001 From: Aruaru <4726806+pop-aruaru@users.noreply.github.com> Date: Fri, 28 Mar 2025 14:53:49 +0900 Subject: [PATCH] Update libpyfb.py Corrected address calculation for 3D axis --- libpyfb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpyfb.py b/libpyfb.py index c393c6f..427a9fe 100644 --- a/libpyfb.py +++ b/libpyfb.py @@ -73,7 +73,7 @@ def drawpixel(self, x, y, r, g, b, t=0): t: transparency (default set to 0) ''' - self.fb.seek(x*y*self.bpp//8) # Set the pixel location + self.fb.seek((x+(y*self.screenx))*self.bpp//8) # Set the pixel location if self.bpp == 32: # 32 bit per pixel