Changed cheat window text entry field sizing to be proportional to average font char width.
This commit is contained in:
parent
cf9d6798b3
commit
b749c0982e
|
@ -50,7 +50,8 @@ GuiCheatsDialog_t::GuiCheatsDialog_t(QWidget *parent)
|
|||
|
||||
QFontMetrics fm(font);
|
||||
|
||||
fontCharWidth = fm.boundingRect('X').width() * devPixRatio;
|
||||
//fontCharWidth = fm.boundingRect('X').width() * devPixRatio;
|
||||
fontCharWidth = 2.00 * fm.averageCharWidth() * devPixRatio;
|
||||
|
||||
setWindowTitle("Cheat Search");
|
||||
|
||||
|
|
Loading…
Reference in New Issue