summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/dvdisasm.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2016-03-03 03:52:21 +1100
committer Vas Crabb <vas@vastheman.com>2016-03-03 03:53:43 +1100
commited88fd30a1804b296ea635c8a507c81c676ddbd4 (patch)
tree69226f0cf072f933823934a327f0d6042d1caf9a /src/emu/debug/dvdisasm.cpp
parent42ea68285296b7838fe9a3ce7e5d66061c8f7e21 (diff)
More stream enhancement
Diffstat (limited to 'src/emu/debug/dvdisasm.cpp')
-rw-r--r--src/emu/debug/dvdisasm.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/emu/debug/dvdisasm.cpp b/src/emu/debug/dvdisasm.cpp
index e55545befd3..6daca107f86 100644
--- a/src/emu/debug/dvdisasm.cpp
+++ b/src/emu/debug/dvdisasm.cpp
@@ -370,10 +370,7 @@ bool debug_view_disasm::recompute(offs_t pc, int startline, int lines)
// allocate disassembly buffer
const auto total_bytes = m_total.x * m_total.y;
- m_dasm.reserve(total_bytes);
- const auto current_bytes = m_dasm.seekp(0, util::ovectorstream::end).tellp();
- if (current_bytes < util::ovectorstream::pos_type(total_bytes))
- util::stream_format(m_dasm, "%*s", total_bytes - int(current_bytes), "");
+ m_dasm.reserve(total_bytes).seekp(total_bytes);
// iterate over lines
for (int line = 0; line < lines; line++)