diff options
author | R. Belmont <rb6502@users.noreply.github.com> | 2013-01-26 21:24:14 +0000 |
---|---|---|
committer | R. Belmont <rb6502@users.noreply.github.com> | 2013-01-26 21:24:14 +0000 |
commit | 7d0a91043177e4c6f59ae2b8897b3628fa9ffca4 (patch) | |
tree | a4b159638428fe871c10f9c7e6d23d154fe3f395 /src/osd | |
parent | e1ed935007f906f2d817ff891ac2577a9e2365c4 (diff) |
SDL: Fix Qt debugger on Mac OS X [Balrog]
Diffstat (limited to 'src/osd')
-rw-r--r-- | src/osd/sdl/debugqtview.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osd/sdl/debugqtview.c b/src/osd/sdl/debugqtview.c index 45432a41269..fdcd4ae43b2 100644 --- a/src/osd/sdl/debugqtview.c +++ b/src/osd/sdl/debugqtview.c @@ -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(); |