trunk/src/osd/modules/debugger/qt/debugqtview.c
| r242449 | r242450 | |
| 152 | 152 | { |
| 153 | 153 | // Tell the MAME debug view how much real estate is available |
| 154 | 154 | QFontMetrics actualFont = fontMetrics(); |
| 155 | | const int fontWidth = MAX(1, actualFont.width('_')); |
| 155 | const double fontWidth = actualFont.width(QString(100, '_')) / 100.; |
| 156 | 156 | const int fontHeight = MAX(1, actualFont.height()); |
| 157 | 157 | m_view->set_visible_size(debug_view_xy(width()/fontWidth, height()/fontHeight)); |
| 158 | 158 | |
| r242449 | r242450 | |
| 344 | 344 | if (event->button() == Qt::LeftButton) |
| 345 | 345 | { |
| 346 | 346 | QFontMetrics actualFont = fontMetrics(); |
| 347 | | const int fontWidth = MAX(1, actualFont.width('_')); |
| 347 | const double fontWidth = actualFont.width(QString(100, '_')) / 100.; |
| 348 | 348 | const int fontHeight = MAX(1, actualFont.height()); |
| 349 | 349 | |
| 350 | 350 | debug_view_xy topLeft = m_view->visible_position(); |