We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0641c0 commit 8d54ce7Copy full SHA for 8d54ce7
ev3dev/core.py
@@ -2306,7 +2306,7 @@ def __init__(self):
2306
2307
self._img = Image.new(
2308
self.var_info.bits_per_pixel == 1 and "1" or "RGB",
2309
- (self.fix_info.line_length * 8 / self.var_info.bits_per_pixel, self.yres),
+ (self.fix_info.line_length * 8 // self.var_info.bits_per_pixel, self.yres),
2310
"white")
2311
2312
self._draw = ImageDraw.Draw(self._img)
0 commit comments