Skip to content

bug in loading in ida version 7.7  #22

@hInfern0

Description

@hInfern0

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions