summaryrefslogtreecommitdiffstats
path: root/src/osd/modules/debugger/qt/memorywindow.cpp
diff options
context:
space:
mode:
author yz70s <yz70s@users.noreply.github.com>2015-11-29 18:02:43 +0100
committer yz70s <yz70s@users.noreply.github.com>2015-11-30 10:15:25 +0100
commitb052dcb402042d1a37bc5b2024050c0f9574d635 (patch)
tree7913cc82fb263d0206ff3bc3b2720ab54fdb5fcf /src/osd/modules/debugger/qt/memorywindow.cpp
parent60083f50943a84ffd90676d698c6728252d0a845 (diff)
First commit for issue #476
"byte per chunk" is sostituted by "data format" data formats lesser than 9 work as before, data format 9 is 32 but floating point in the debug_view_memory class method bytes_per_chunk is substituted by get_data_format, set_bytes_per_chunk is substituted by set_data_format floating point values cannot be edited currently floating point values are available only in the windows debugger, next commit will add them to the qt debugger, osx i won't be able to do it afterwards 64 and 80 bit formats will be added
Diffstat (limited to 'src/osd/modules/debugger/qt/memorywindow.cpp')
-rw-r--r--src/osd/modules/debugger/qt/memorywindow.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/osd/modules/debugger/qt/memorywindow.cpp b/src/osd/modules/debugger/qt/memorywindow.cpp
index 3aee20a0cd0..e18a4df2c88 100644
--- a/src/osd/modules/debugger/qt/memorywindow.cpp
+++ b/src/osd/modules/debugger/qt/memorywindow.cpp
@@ -143,7 +143,7 @@ void MemoryWindow::memoryRegionChanged(int index)
// Update the chunk size radio buttons to the memory region's default
debug_view_memory* memView = downcast<debug_view_memory*>(m_memTable->view());
- switch(memView->bytes_per_chunk())
+ switch(memView->get_data_format())
{
case 1: chunkSizeMenuItem("chunkActOne")->setChecked(true); break;
case 2: chunkSizeMenuItem("chunkActTwo")->setChecked(true); break;
@@ -176,15 +176,15 @@ void MemoryWindow::chunkChanged(QAction* changedTo)
debug_view_memory* memView = downcast<debug_view_memory*>(m_memTable->view());
if (changedTo->text() == "1-byte chunks")
{
- memView->set_bytes_per_chunk(1);
+ memView->set_data_format(1);
}
else if (changedTo->text() == "2-byte chunks")
{
- memView->set_bytes_per_chunk(2);
+ memView->set_data_format(2);
}
else if (changedTo->text() == "4-byte chunks")
{
- memView->set_bytes_per_chunk(4);
+ memView->set_data_format(4);
}
m_memTable->viewport()->update();
}