sim: all add headers to project file. Text drawing supports external style.

This commit is contained in:
openshwprojects
2022-12-08 10:32:59 +01:00
parent f58f99aa0e
commit 86195b03be
12 changed files with 93 additions and 20 deletions

View File

@@ -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;
}