mirror of https://github.com/axmolengine/axmol.git
fixed #2068: Fixing a compilation error on win32 since "•" couldn't be recognized by vs compiler.
This commit is contained in:
parent
861e8e42f7
commit
b91c5f099c
|
@ -288,6 +288,7 @@ void CCTextFieldTTF::setColorSpaceHolder(const ccColor3B& color)
|
|||
// input text property
|
||||
void CCTextFieldTTF::setString(const char *text)
|
||||
{
|
||||
static char bulletString[] = {0xe2, 0x80, 0xa2, 0x00};
|
||||
std::string displayText;
|
||||
int length;
|
||||
|
||||
|
@ -303,7 +304,7 @@ void CCTextFieldTTF::setString(const char *text)
|
|||
length = m_pInputText->length();
|
||||
while (length)
|
||||
{
|
||||
displayText.append("•");
|
||||
displayText.append(bulletString);
|
||||
--length;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue