mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
Qt debugger: fix error in determining where clicks are in memory views [Golden Child]
This commit is contained in:
parent
bc70f289b8
commit
debe2f560b
@ -329,7 +329,7 @@ void DebuggerMemView::mousePressEvent(QMouseEvent* event)
|
||||
{
|
||||
QFontMetrics actualFont = fontMetrics();
|
||||
const double fontWidth = actualFont.width(QString(100, '_')) / 100.;
|
||||
const int fontHeight = std::max(1, actualFont.height());
|
||||
const int fontHeight = std::max(1, actualFont.lineSpacing());
|
||||
|
||||
debug_view_xy topLeft = view()->visible_position();
|
||||
debug_view_xy clickViewPosition;
|
||||
|
Loading…
Reference in New Issue
Block a user