mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-14 19:28:57 +01:00
sim: all add headers to project file. Text drawing supports external style.
This commit is contained in:
@@ -98,17 +98,17 @@ void CText::drawShape() {
|
||||
buffer[cursorPos] = 0;
|
||||
strcat(buffer, "|");
|
||||
strcat(buffer, txt.c_str()+ cursorPos);
|
||||
drawText(getX(), getY(), buffer);
|
||||
drawText(NULL, getX(), getY(), buffer);
|
||||
}
|
||||
else {
|
||||
drawText(getX(), getY(), txt.c_str());
|
||||
drawText(NULL, getX(), getY(), txt.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
float CText::drawPrivateInformation2D(float x, float h) {
|
||||
h = drawText(x, h, "Text: %s", this->txt.c_str());
|
||||
h = drawText(NULL, x, h, "Text: %s", this->txt.c_str());
|
||||
return h;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user