1
0
forked from drath/libratbag

tools: remove an unnecessary variable definition

This commit is contained in:
Yaroslav Chvanov
2023-02-24 22:46:34 +03:00
parent 62678baca1
commit dcdd7be8d8

View File

@@ -482,7 +482,7 @@ class RatbagdResolution(metaclass=MetaRatbag):
@property
def resolution(self):
"""The tuple (xres, yres) with each resolution in DPI."""
dpi_y = dpi_x = libratbag.ratbag_resolution_get_dpi_x(self._res)
dpi_x = libratbag.ratbag_resolution_get_dpi_x(self._res)
if libratbag.RATBAG_RESOLUTION_CAP_SEPARATE_XY_RESOLUTION in self._capabilities:
dpi_y = libratbag.ratbag_resolution_get_dpi_y(self._res)
return (dpi_x, dpi_y)