Skip to content

Commit

Permalink
chore: ensure splash width is int
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanVoxel committed Sep 2, 2024
1 parent 1e4883c commit 1c53f05
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tagstudio/src/qt/ts_qt.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,13 +293,15 @@ def start(self) -> None:
splash_pixmap = QPixmap(":/images/splash.png")
splash_pixmap.setDevicePixelRatio(self.main_window.devicePixelRatio())
splash_pixmap = splash_pixmap.scaledToWidth(
min(
(
QGuiApplication.primaryScreen().geometry().width()
* self.main_window.devicePixelRatio()
math.floor(
min(
(
QGuiApplication.primaryScreen().geometry().width()
* self.main_window.devicePixelRatio()
)
/ 4,
splash_pixmap.width(),
)
// 4,
splash_pixmap.width(),
),
Qt.TransformationMode.SmoothTransformation,
)
Expand Down

0 comments on commit 1c53f05

Please sign in to comment.