added DrawFilledBox function

I was testing something with ESP
This commit is contained in:
Bekston
2023-10-02 11:12:54 +02:00
parent cf4d249491
commit e3a75b1dbc
+7
View File
@@ -14,6 +14,13 @@ namespace render {
DeleteObject(hBorderBrush); // Delete the temporary brush
}
void DrawFilledBox(HDC hdc, int x, int y, int width, int height, COLORREF color) {
HBRUSH hBrush = CreateSolidBrush(color);
RECT rect = { x, y, x + width, y + height };
FillRect(hdc, &rect, hBrush);
DeleteObject(hBrush);
}
void SetTextSize(HDC hdc, int textSize)
{
LOGFONT lf;