mathewthe2 / Game2Text-Lightning

OCR-based popup dictionary for language learning
MIT License
40 stars 1 forks source link

DPI awareness #4

Open sleepyspider1 opened 2 years ago

sleepyspider1 commented 2 years ago

Popup is tiny as hell on retina display on mac book pro and you can't read it.

mathewthe2 commented 2 years ago

It seems like the only way to reliably enable DPI awareness for the webengine is by

QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)

but that applies to the whole application and messes up with the current way of window and text positioning. Detection boxes and text boxes and possible cursor position detection are all affected.