src/osd/sdl/debugwin.c
| r3902 | r3903 | |
| 458 | 458 | |
| 459 | 459 | debug_view_begin_update(mem->memory); |
| 460 | 460 | memory_view_set_expression(mem->memory, "0"); |
| 461 | | // debug_view_set_property_UINT32(mem->memory, DVP_MEM_TRACK_LIVE, 1); |
| 462 | 461 | debug_view_end_update(mem->memory); |
| 463 | 462 | |
| 464 | | |
| 465 | 463 | // populate the combobox |
| 466 | 464 | if (!memorycombo) |
| 467 | 465 | { |
| 468 | | memorycombo_item **tail = &memorycombo; |
| 469 | | |
| 470 | 466 | cursel = item = 0; |
| 471 | 467 | |
| 472 | 468 | for (subview = memory_view_get_subview_list(mem->memory); subview != NULL; subview = subview->next) |
| 473 | 469 | { |
| 474 | | memorycombo_item *ci = malloc_or_die(sizeof(*ci)); |
| 475 | | memset(ci, 0, sizeof(*ci)); |
| 476 | | ci->machine = machine; |
| 477 | | ci->prefsize = 4; |
| 478 | | ci->subview = subview; |
| 479 | | ci->device = curcpu; |
| 480 | | |
| 481 | | strncpy(ci->name, subview->name, sizeof(ci->name)); |
| 482 | | |
| 483 | | *tail = ci; |
| 484 | | tail = &ci->next; |
| 485 | | |
| 470 | gtk_combo_box_append_text(mem->zone_w, subview->name); |
| 486 | 471 | if (cursel == 0 && subview->space != NULL && subview->space->cpu == curcpu) |
| 487 | 472 | cursel = item; |
| 488 | 473 | |