From e3a75b1dbcc299cc519724e464b2c856cb6e0e37 Mon Sep 17 00:00:00 2001 From: Bekston <68049924+Bekston@users.noreply.github.com> Date: Mon, 2 Oct 2023 11:12:54 +0200 Subject: [PATCH] added DrawFilledBox function I was testing something with ESP --- memory-external/classes/render.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/memory-external/classes/render.hpp b/memory-external/classes/render.hpp index db5de88..4f38cd9 100644 --- a/memory-external/classes/render.hpp +++ b/memory-external/classes/render.hpp @@ -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;