trunk/src/osd/sdl/debugqtview.c
| r20514 | r20515 | |
| 32 | 32 | { |
| 33 | 33 | // Tell the MAME debug view how much real estate is available |
| 34 | 34 | QFontMetrics actualFont = fontMetrics(); |
| 35 | | const int fontWidth = MAX(1, actualFont.maxWidth()); |
| 35 | const int fontWidth = MAX(1, actualFont.width('_')); |
| 36 | 36 | const int fontHeight = MAX(1, actualFont.height()); |
| 37 | 37 | m_view->set_visible_size(debug_view_xy(width()/fontWidth, height()/fontHeight)); |
| 38 | 38 | |
| r20514 | r20515 | |
| 206 | 206 | if (event->button() == Qt::LeftButton) |
| 207 | 207 | { |
| 208 | 208 | QFontMetrics actualFont = fontMetrics(); |
| 209 | | const int fontWidth = MAX(1, actualFont.maxWidth()); |
| 209 | const int fontWidth = MAX(1, actualFont.width('_')); |
| 210 | 210 | const int fontHeight = MAX(1, actualFont.height()); |
| 211 | 211 | |
| 212 | 212 | debug_view_xy topLeft = m_view->visible_position(); |