| Previous | 199869 Revisions | Next |
| r36057 Sunday 22nd February, 2015 at 17:23:12 UTC by Vasantha Crabb |
|---|
| Make opening a break/watchpoints window work better if there are already ten or more of them |
| [/branches/kale/src/emu/debug] | dvbpoints.c dvwpoints.c |
| r244568 | r244569 | |
|---|---|---|
| 32 | 32 | enumerate_sources(); |
| 33 | 33 | if (m_source_list.count() == 0) |
| 34 | 34 | throw std::bad_alloc(); |
| 35 | ||
| 36 | // configure the view | |
| 37 | m_total.y = 10; | |
| 38 | m_supports_cursor = false; | |
| 39 | 35 | } |
| 40 | 36 | |
| 41 | 37 | |
| r244568 | r244569 | |
| 325 | 321 | const int numBPs = breakpoints(SORT_NONE, bpList); |
| 326 | 322 | |
| 327 | 323 | // Set the view region so the scroll bars update |
| 328 | m_total.y = numBPs+1; | |
| 324 | m_total.y = numBPs + 1; | |
| 325 | if (m_total.y < 10) | |
| 326 | m_total.y = 10; | |
| 329 | 327 | |
| 330 | 328 | // Draw |
| 331 | 329 | debug_view_char *dest = m_viewdata; |
| r244568 | r244569 | |
|---|---|---|
| 31 | 31 | enumerate_sources(); |
| 32 | 32 | if (m_source_list.count() == 0) |
| 33 | 33 | throw std::bad_alloc(); |
| 34 | ||
| 35 | // configure the view | |
| 36 | m_total.y = 10; | |
| 37 | m_supports_cursor = false; | |
| 38 | 34 | } |
| 39 | 35 | |
| 40 | 36 | |
| r244568 | r244569 | |
| 379 | 375 | const int numWPs = watchpoints(SORT_NONE, wpList); |
| 380 | 376 | |
| 381 | 377 | // Set the view region so the scroll bars update |
| 382 | m_total.y = numWPs+1; | |
| 378 | m_total.y = numWPs + 1; | |
| 379 | if (m_total.y < 10) | |
| 380 | m_total.y = 10; | |
| 383 | 381 | |
| 384 | 382 | // Draw |
| 385 | 383 | debug_view_char *dest = m_viewdata; |
| https://github.com/mamedev/mame/commit/01ec6458ff508d568815db3de8a2eb7e07d45ed0 |
| Previous | 199869 Revisions | Next |