Update renderd7.cpp

This commit is contained in:
tobid7 2021-08-01 12:58:56 +02:00 committed by GitHub
parent 4750ba5a6c
commit d7c02bab33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -358,6 +358,11 @@ bool RenderD7::DrawRect(float x, float y, float w, float h, u32 color)
return C2D_DrawRectSolid(x, y, 0.5f, w, h, color);
}
bool RenderD7::DrawPx(float x, float y, u32 color)
{
return C2D_DrawRectSolid(x, y, 0.5f, 1, 1, color);
}
void RenderD7::DrawTextCentered(float x, float y, float size, u32 color, std::string Text, int maxWidth, int maxHeight, C2D_Font fnt) {
float lineHeight, widthScale;