@@ -138,7 +138,7 @@ void PCSX::Widgets::Assembly::GPR(uint8_t reg) {
138138 sameLine ();
139139 ImGui::Text (" $" );
140140 sameLine ();
141- ImGui::Text (s_disRNameGPR[reg]);
141+ ImGui::TextUnformatted (s_disRNameGPR[reg]);
142142 if (ImGui::IsItemHovered ()) {
143143 ImGui::BeginTooltip ();
144144 ImGui::PushTextWrapPos (ImGui::GetFontSize () * 35 .0f );
@@ -152,7 +152,7 @@ void PCSX::Widgets::Assembly::CP0(uint8_t reg) {
152152 sameLine ();
153153 ImGui::Text (" $" );
154154 sameLine ();
155- ImGui::Text (s_disRNameCP0[reg]);
155+ ImGui::TextUnformatted (s_disRNameCP0[reg]);
156156 if (ImGui::IsItemHovered ()) {
157157 ImGui::BeginTooltip ();
158158 ImGui::PushTextWrapPos (ImGui::GetFontSize () * 35 .0f );
@@ -166,7 +166,7 @@ void PCSX::Widgets::Assembly::CP2C(uint8_t reg) {
166166 sameLine ();
167167 ImGui::Text (" $" );
168168 sameLine ();
169- ImGui::Text (s_disRNameCP2C[reg]);
169+ ImGui::TextUnformatted (s_disRNameCP2C[reg]);
170170 if (ImGui::IsItemHovered ()) {
171171 ImGui::BeginTooltip ();
172172 ImGui::PushTextWrapPos (ImGui::GetFontSize () * 35 .0f );
@@ -180,7 +180,7 @@ void PCSX::Widgets::Assembly::CP2D(uint8_t reg) {
180180 sameLine ();
181181 ImGui::Text (" $" );
182182 sameLine ();
183- ImGui::Text (s_disRNameCP2D[reg]);
183+ ImGui::TextUnformatted (s_disRNameCP2D[reg]);
184184 if (ImGui::IsItemHovered ()) {
185185 ImGui::BeginTooltip ();
186186 ImGui::PushTextWrapPos (ImGui::GetFontSize () * 35 .0f );
@@ -263,7 +263,7 @@ void PCSX::Widgets::Assembly::Target(uint32_t value) {
263263 comma ();
264264 sameLine ();
265265 char label[21 ];
266- ImGui::Text (" " );
266+ ImGui::TextUnformatted (" " );
267267 ImGui::SameLine ();
268268 if (m_displayArrowForJumps) m_arrows.push_back ({m_currentAddr, value});
269269 std::snprintf (label, sizeof (label), " 0x%8.8x##%8.8x" , value, m_currentAddr);
@@ -341,7 +341,7 @@ void PCSX::Widgets::Assembly::OfB(int16_t offset, uint8_t reg, int size) {
341341 std::snprintf (label, sizeof (label), " 0x%4.4x($%s)##%08x" , offset, s_disRNameGPR[reg], m_currentAddr);
342342 }
343343 uint32_t addr = m_registers->GPR .r [reg] + offset;
344- ImGui::Text (" " );
344+ ImGui::TextUnformatted (" " );
345345 ImGui::SameLine ();
346346 ImGui::PushStyleVar (ImGuiStyleVar_FramePadding, ImVec2 (0 , 0 ));
347347 if (ImGui::Button (label)) jumpToMemory (addr, size);
@@ -368,7 +368,7 @@ void PCSX::Widgets::Assembly::BranchDest(uint32_t value) {
368368 comma ();
369369 sameLine ();
370370 char label[21 ];
371- ImGui::Text (" " );
371+ ImGui::TextUnformatted (" " );
372372 ImGui::SameLine ();
373373 m_arrows.push_back ({m_currentAddr, value});
374374 std::snprintf (label, sizeof (label), " 0x%8.8x##%8.8x" , value, m_currentAddr);
@@ -398,7 +398,7 @@ void PCSX::Widgets::Assembly::Offset(uint32_t addr, int size) {
398398 std::string longLabel = label;
399399 auto symbols = findSymbol (addr);
400400 if (symbols.size () != 0 ) longLabel = *symbols.begin () + " ;" + label;
401- ImGui::Text (" " );
401+ ImGui::TextUnformatted (" " );
402402 ImGui::SameLine ();
403403 ImGui::PushStyleVar (ImGuiStyleVar_FramePadding, ImVec2 (0 , 0 ));
404404 if (ImGui::Button (longLabel.c_str ())) jumpToMemory (addr, size);
@@ -455,7 +455,7 @@ void PCSX::Widgets::Assembly::draw(psxRegisters* registers, Memory* memory, Dwar
455455 if (ImGui::IsItemHovered ()) {
456456 ImGui::BeginTooltip ();
457457 ImGui::PushTextWrapPos (glyphWidth * 35 .0f );
458- ImGui::TextWrapped (
458+ ImGui::TextUnformatted (
459459 _ (" When two instructions are detected to be a single pseudo-instruction, combine them into the "
460460 " actual pseudo-instruction." ));
461461 ImGui::PopTextWrapPos ();
@@ -465,7 +465,7 @@ void PCSX::Widgets::Assembly::draw(psxRegisters* registers, Memory* memory, Dwar
465465 if (ImGui::IsItemHovered ()) {
466466 ImGui::BeginTooltip ();
467467 ImGui::PushTextWrapPos (glyphWidth * 35 .0f );
468- ImGui::TextWrapped (
468+ ImGui::TextUnformatted (
469469 _ (" When combining two instructions into a single pseudo-instruction, add a placeholder for the "
470470 " second one." ));
471471 ImGui::PopTextWrapPos ();
@@ -475,7 +475,7 @@ void PCSX::Widgets::Assembly::draw(psxRegisters* registers, Memory* memory, Dwar
475475 if (ImGui::IsItemHovered ()) {
476476 ImGui::BeginTooltip ();
477477 ImGui::PushTextWrapPos (glyphWidth * 35 .0f );
478- ImGui::TextWrapped (
478+ ImGui::TextUnformatted (
479479 _ (" Add a small visible notch to indicate instructions that are on the delay slot of a branch." ));
480480 ImGui::PopTextWrapPos ();
481481 ImGui::EndTooltip ();
@@ -484,7 +484,7 @@ void PCSX::Widgets::Assembly::draw(psxRegisters* registers, Memory* memory, Dwar
484484 if (ImGui::IsItemHovered ()) {
485485 ImGui::BeginTooltip ();
486486 ImGui::PushTextWrapPos (glyphWidth * 35 .0f );
487- ImGui::TextWrapped (_ (" Display arrows for jumps. This might crowd the display a bit too much." ));
487+ ImGui::TextUnformatted (_ (" Display arrows for jumps. This might crowd the display a bit too much." ));
488488 ImGui::PopTextWrapPos ();
489489 ImGui::EndTooltip ();
490490 }
@@ -637,7 +637,7 @@ void PCSX::Widgets::Assembly::draw(psxRegisters* registers, Memory* memory, Dwar
637637 }
638638
639639 for (int i = 0 ; i < m_numColumns * ImGui::GetWindowDpiScale (); i++) {
640- ImGui::Text (" " );
640+ ImGui::TextUnformatted (" " );
641641 ImGui::SameLine ();
642642 }
643643
@@ -930,7 +930,7 @@ void PCSX::Widgets::Assembly::draw(psxRegisters* registers, Memory* memory, Dwar
930930 dwarf->m_pc = fmt::format (" {:08x}" , symbol.second );
931931 }
932932 ImGui::SameLine ();
933- ImGui::Text (label.c_str ());
933+ ImGui::TextUnformatted (label.c_str ());
934934 }
935935 }
936936 ImGui::EndChild ();
0 commit comments