From 34358fb907bfb678360c630debc4bb371b9bd64e Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 7 Aug 2016 18:02:10 -0700 Subject: [PATCH] Use an explicit Unicode reference. This should be less likely of triggering weird issues with Visual Studio. --- .editorconfig | 4 ---- Windows/GEDebugger/CtrlDisplayListView.cpp | 6 +++--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.editorconfig b/.editorconfig index 807c348085..dde2e23117 100644 --- a/.editorconfig +++ b/.editorconfig @@ -22,9 +22,5 @@ charset = utf-16le # This file may need to force a BOM so compilers treat as utf-8. charset = utf-8-bom -[Windows/GEDebugger/CtrlDisplayListView.cpp] -# This file may need to force a BOM so compilers treat as utf-8. -charset = utf-8-bom - [Windows/version.rc] charset = utf-16le diff --git a/Windows/GEDebugger/CtrlDisplayListView.cpp b/Windows/GEDebugger/CtrlDisplayListView.cpp index 366c9bdd10..26086144ba 100644 --- a/Windows/GEDebugger/CtrlDisplayListView.cpp +++ b/Windows/GEDebugger/CtrlDisplayListView.cpp @@ -1,4 +1,4 @@ -#include "Windows/GEDebugger/CtrlDisplayListView.h" +#include "Windows/GEDebugger/CtrlDisplayListView.h" #include "Windows/GEDebugger/GEDebugger.h" #include "Windows/InputBox.h" #include "Windows/Main.h" @@ -230,7 +230,7 @@ void CtrlDisplayListView::onPaint(WPARAM wParam, LPARAM lParam) if (address == list.pc) { - TextOut(hdc,pixelPositions.opcodeStart-8,rowY1,L"■",1); + TextOut(hdc,pixelPositions.opcodeStart-8,rowY1,L"\x25A0",1); } const char* opcode = op.desc.c_str(); @@ -473,4 +473,4 @@ bool CtrlDisplayListView::curAddressIsVisible() { u32 windowEnd = windowStart + visibleRows * instructionSize; return curAddress >= windowStart && curAddress < windowEnd; -} \ No newline at end of file +}