mirror of
https://github.com/holub/mame
synced 2025-04-24 09:20:02 +03:00
SDL: Fix Qt debugger on Mac OS X [Balrog]
This commit is contained in:
parent
e1ed935007
commit
7d0a910431
@ -32,7 +32,7 @@ void DebuggerView::paintEvent(QPaintEvent* event)
|
||||
{
|
||||
// Tell the MAME debug view how much real estate is available
|
||||
QFontMetrics actualFont = fontMetrics();
|
||||
const int fontWidth = MAX(1, actualFont.maxWidth());
|
||||
const int fontWidth = MAX(1, actualFont.width('_'));
|
||||
const int fontHeight = MAX(1, actualFont.height());
|
||||
m_view->set_visible_size(debug_view_xy(width()/fontWidth, height()/fontHeight));
|
||||
|
||||
@ -206,7 +206,7 @@ void DebuggerView::mousePressEvent(QMouseEvent* event)
|
||||
if (event->button() == Qt::LeftButton)
|
||||
{
|
||||
QFontMetrics actualFont = fontMetrics();
|
||||
const int fontWidth = MAX(1, actualFont.maxWidth());
|
||||
const int fontWidth = MAX(1, actualFont.width('_'));
|
||||
const int fontHeight = MAX(1, actualFont.height());
|
||||
|
||||
debug_view_xy topLeft = m_view->visible_position();
|
||||
|
Loading…
Reference in New Issue
Block a user