Rendering while in buy menu.
While in the buy menu, the panel is repositioning itself, how would I fix this? It's pretty ugly having my watermark fuck around the page while buying weapons.
g_pVGuiHook = new CVMTManager((DWORD**)g_pEngineVGui); g_fnPaint = (PaintFn)g_pVGuiHook->dwHookMethod((DWORD)hkPaint, 14);
/* Paint */
typedef void(__thiscall* PaintFn)(IEngineVGui*, int);
PaintFn g_fnPaint;
void __stdcall hkPaint(int Mode) {
/* Start & Finish Drawing */
static auto StartDrawing = reinterpret_cast<void(__thiscall*)(void*)>(Pat::FindPattern("vguimatsurface.dll", "55 8B EC 83 E4 C0 83 EC 38"));
static auto FinishDrawing = reinterpret_cast<void(__thiscall*)(void*)>(Pat::FindPattern("vguimatsurface.dll", "8B 0D ? ? ? ? 56 C6 05"));
g_pVGuiHook->Function<PaintFn>(14)(g_pEngineVGui, Mode);
if (Mode & PAINT_UIPANELS) {
StartDrawing(g_pSurface);
g_pVisuals->WaterMark();
FinishDrawing(g_pSurface);
}
}