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