Skip to content

Commit 029fb6d

Browse files
committed
Simplify the content scale logic
1 parent 9003c24 commit 029fb6d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

include/dskdc.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,13 @@ class dskDC : public piDC {
7676
/// \return The scale factor
7777
double GetContentScaleFactor() const
7878
{
79-
if (glcanvas) {
80-
return glcanvas->GetContentScaleFactor();
81-
} else if (dc) {
82-
return dc->GetContentScaleFactor();
83-
} else
84-
return m_scale_factor;
79+
// TODO: For some reason the bellow seems crashing on flatpak
80+
// if (glcanvas) {
81+
// return glcanvas->GetContentScaleFactor();
82+
// } else if (dc) {
83+
// return dc->GetContentScaleFactor();
84+
// } else
85+
return m_scale_factor;
8586
};
8687

8788
/// Set the scale factor of the device context

0 commit comments

Comments
 (0)