Previous 199869 Revisions Next

r20515 Saturday 26th January, 2013 at 21:24:14 UTC by R. Belmont
SDL: Fix Qt debugger on Mac OS X [Balrog]
[src/osd/sdl]debugqtview.c

trunk/src/osd/sdl/debugqtview.c
r20514r20515
3232{
3333    // Tell the MAME debug view how much real estate is available
3434    QFontMetrics actualFont = fontMetrics();
35    const int fontWidth = MAX(1, actualFont.maxWidth());
35    const int fontWidth = MAX(1, actualFont.width('_'));
3636    const int fontHeight = MAX(1, actualFont.height());
3737    m_view->set_visible_size(debug_view_xy(width()/fontWidth, height()/fontHeight));
3838
r20514r20515
206206   if (event->button() == Qt::LeftButton)
207207   {
208208      QFontMetrics actualFont = fontMetrics();
209      const int fontWidth = MAX(1, actualFont.maxWidth());
209      const int fontWidth = MAX(1, actualFont.width('_'));
210210      const int fontHeight = MAX(1, actualFont.height());
211211     
212212      debug_view_xy topLeft = m_view->visible_position();

Previous 199869 Revisions Next


© 1997-2024 The MAME Team