Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in loading in ida version 7.7 #22

Open
hInfern0 opened this issue Aug 25, 2023 · 1 comment
Open

bug in loading in ida version 7.7 #22

hInfern0 opened this issue Aug 25, 2023 · 1 comment

Comments

@hInfern0
Copy link

hInfern0 commented Aug 25, 2023

i dont think its about the version of ida but in the code from this function you return a double then pass it to qt
file : util/qt/util.py line 47

def get_dpi_scale():
    """
    Get a DPI-afflicted value useful for consistent UI scaling.
    """
    font = MonospaceFont()
    font.setPointSize(normalize_font(120))
    fm = QtGui.QFontMetricsF(font)

    # xHeight is expected to be 40.0 at normal DPI
    return fm.height() / 173.0

then you pass it to qt functions which all params are int here
file : util/qt/waitbox.py line 89

v_layout.setSpacing(int(self._dpi_scale*3))
v_layout.setContentsMargins(
    self._dpi_scale*5,
    self._dpi_scale,
    self._dpi_scale*5,
    self._dpi_scale
)

# scale widget dimensions based on DPI
height = self._dpi_scale * 15
self.setMinimumHeight(height)

so if you change that line 65 of code in waitbox.py to that you will fix the issue

self._dpi_scale = int(get_dpi_scale()*5.0)
@mcdulltii
Copy link

Refer to fix in #18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants