From 4b789393179232bbac14d89972ad83d44b4ae6c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 17 Feb 2018 12:27:07 -0800 Subject: [PATCH] Removed use of wchar_t. --- examples/10-font/font.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/10-font/font.cpp b/examples/10-font/font.cpp index a3f1bacca..618e57c4b 100644 --- a/examples/10-font/font.cpp +++ b/examples/10-font/font.cpp @@ -244,13 +244,13 @@ public: const double toMs = 1000.0 / freq; // Use transient text to display debug information. - wchar_t fpsText[64]; - bx::swnprintf(fpsText, BX_COUNTOF(fpsText), L"Frame: % 7.3f[ms]", double(frameTime) * toMs); + char fpsText[64]; + bx::snprintf(fpsText, BX_COUNTOF(fpsText), "Frame: % 7.3f[ms]", double(frameTime) * toMs); m_textBufferManager->clearTextBuffer(m_transientText); m_textBufferManager->setPenPosition(m_transientText, m_width - 150.0f, 10.0f); - m_textBufferManager->appendText(m_transientText, m_visitor10, L"Transient\n"); - m_textBufferManager->appendText(m_transientText, m_visitor10, L"text buffer\n"); + m_textBufferManager->appendText(m_transientText, m_visitor10, "Transient\n"); + m_textBufferManager->appendText(m_transientText, m_visitor10, "text buffer\n"); m_textBufferManager->appendText(m_transientText, m_visitor10, fpsText); float at[3] = { 0, 0, 0.0f };