kivy / kivy

Open source UI framework written in Python, running on Windows, Linux, macOS, Android and iOS
https://kivy.org
MIT License
17k stars 3.04k forks source link

`im.add_mipmap` requires five parameters, but only four arguments are being used #8685

Open marinelay opened 3 weeks ago

marinelay commented 3 weeks ago

Software Versions

Describe the bug https://github.com/kivy/kivy/blob/c0d4894384abb81cf4729984a1eaa4c437d266da/kivy/core/image/img_dds.py#L27-L36

While im.add_mipmap has five parameters (def add_mipmap(self, level, width, height, data, rowlength):), there are only four arguments at line 35.

I think it's a bug, but I'm not sure how to reproduce it. I apologize for not providing reproduction code.

Code and Logs and screenshots https://github.com/kivy/kivy/blob/c0d4894384abb81cf4729984a1eaa4c437d266da/kivy/core/image/img_dds.py#L27-L36

https://github.com/kivy/kivy/blob/c0d4894384abb81cf4729984a1eaa4c437d266da/kivy/core/image/__init__.py#L174-L179