diff options
author | Aaron Giles <aaron@aarongiles.com> | 2008-12-05 16:02:22 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2008-12-05 16:02:22 +0000 |
commit | e2c9b10241a49226c9b1a0f58d3e2f9e81d64236 (patch) | |
tree | fcbe12e6d3632196a370b5628104a8cb2642371a /src/osd | |
parent | 12f71dac82ee894f703c630d22625277ebee7821 (diff) |
Fixed some memory view-related issues:
* select correct memory region by default when created
(should be first address space of visible CPU)
* when created, default bytes/chunk is correct
* when changing width, cursor no longer moves around
* memory regions display more than all 0xff now
Also fixed:
* qword big-endian memory reads no longer call little-endian handlers
* memory regions are tracked in creation order (show up in order
in the menu now)
* ROMREGION_DISPOSE memory regions are not disposed if the debugger
is enabled
Diffstat (limited to 'src/osd')
-rw-r--r-- | src/osd/windows/debugwin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/osd/windows/debugwin.c b/src/osd/windows/debugwin.c index febf33776cb..a09cb1740ed 100644 --- a/src/osd/windows/debugwin.c +++ b/src/osd/windows/debugwin.c @@ -1683,7 +1683,7 @@ static void memory_create_window(running_machine *machine) const memory_subview_item *subview; debugwin_info *info; HMENU optionsmenu; - int cursel = 0; + int cursel = -1; // create the window info = debugwin_window_create(machine, "Memory", NULL); @@ -1738,9 +1738,10 @@ static void memory_create_window(running_machine *machine) TCHAR *t_name = tstring_from_utf8(subview->name); int item = SendMessage(info->otherwnd[0], CB_ADDSTRING, 0, (LPARAM)t_name); free(t_name); - if (cursel == 0 && subview->space != NULL && subview->space->cpu == curcpu) + if (cursel == -1 && subview->space != NULL && subview->space->cpu == curcpu) cursel = item; } + if (cursel == -1) cursel = 0; SendMessage(info->otherwnd[0], CB_SETCURSEL, cursel, 0); memory_view_set_subview(info->view[0].view, cursel); |