Previous 15994 Revisions Next

r3903 Saturday 20th December, 2008 at 05:03:03 UTC by R. Belmont
[SDLMESS] Fix combo selector in memory windows
[src/osd/sdl]debugwin.c

src/osd/sdl/debugwin.c
r3902r3903
458458
459459   debug_view_begin_update(mem->memory);
460460   memory_view_set_expression(mem->memory, "0");
461//   debug_view_set_property_UINT32(mem->memory, DVP_MEM_TRACK_LIVE, 1);
462461   debug_view_end_update(mem->memory);
463462
464
465463   // populate the combobox
466464   if (!memorycombo)
467465   {
468      memorycombo_item **tail = &memorycombo;
469
470466      cursel = item = 0;
471467
472468      for (subview = memory_view_get_subview_list(mem->memory); subview != NULL; subview = subview->next)
473469      {
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);
486471         if (cursel == 0 && subview->space != NULL && subview->space->cpu == curcpu)
487472            cursel = item;
488473

Previous 15994 Revisions Next


© 1998-2018 The MESS Team