浏览代码

Fixed VS build.

Branimir Karadžić 9 年之前
父节点
当前提交
5d83b6fa4c
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      examples/00-helloworld/helloworld.cpp
  2. 1 1
      src/bgfx.cpp

+ 1 - 1
examples/00-helloworld/helloworld.cpp

@@ -65,7 +65,7 @@ class ExampleHelloWorld : public entry::AppI
 			bgfx::dbgTextPrintf(0, 1, 0x4f, "bgfx/examples/00-helloworld");
 			bgfx::dbgTextPrintf(0, 2, 0x6f, "Description: Initialization and debug text.");
 
-			bgfx::dbgTextPrintf(0, 4, 0x0f, "Color can be changed with ANSI \e[9;me\e[10;ms\e[11;mc\e[12;ma\e[13;mp\e[14;me\e[0m code too.");
+			bgfx::dbgTextPrintf(0, 4, 0x0f, "Color can be changed with ANSI \x1b[9;me\x1b[10;ms\x1b[11;mc\x1b[12;ma\x1b[13;mp\x1b[14;me\x1b[0m code too.");
 
 			const bgfx::Stats* stats = bgfx::getStats();
 			bgfx::dbgTextPrintf(0, 6, 0x0f, "Backbuffer %dW x %dH in pixels, debug text %dW x %dH in characters."

+ 1 - 1
src/bgfx.cpp

@@ -585,7 +585,7 @@ namespace bgfx
 			for (uint32_t ii = 0, xx = _x; ii < num && xx < m_width; ++ii, ++xx)
 			{
 				char ch = temp[ii];
-				if (BX_UNLIKELY(ch == '\e') )
+				if (BX_UNLIKELY(ch == '\x1b') )
 				{
 					char* ptr = &temp[ii+1];
 					attr = parseAttr(ptr, _attr);