chore: cleanup function names & update gdraw resolution

This commit is contained in:
str1k3r committed 2026-09-05 01:17:52 -04:00
1 parent 1e37e0207c
commit 6800455166
19 files changed
+97 -76

No files matched your search

@@ -878,8 +878,9 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
ui.tick();
ui.render();
//str1k3r - now set the resolution a FUCK ton of times to tell 4J to fuck off with their hardcoded shit
//str1k3r - update RenderManager's & gdraw's resolution
RenderManager.setResolution(g_iScreenWidth, g_iScreenHeight);
ui.updateResolution(g_iScreenWidth, g_iScreenHeight);
// Present the frame.
RenderManager.Present();
@@ -95,6 +95,14 @@ void ConsoleUIController::render()
#endif
}
//str1k3r - update gdraw resolution
void ConsoleUIController::updateResolution(S32 w, S32 h)
{
#ifdef _ENABLEIGGY
gdraw_D3D11_SetRendertargetSize(w, h);
#endif
}
void ConsoleUIController::beginIggyCustomDraw4J(IggyCustomDrawCallbackRegion *region, CustomDrawData *customDrawRegion)
{
PIXBeginNamedEvent(0,"Starting Iggy custom draw\n");
@@ -11,6 +11,8 @@ public:
void init(ID3D11Device *dev, ID3D11DeviceContext *ctx, ID3D11RenderTargetView* pRenderTargetView, ID3D11DepthStencilView* pDepthStencilView, S32 w, S32 h);
void render();
//str1k3r - updateResolution is a Windows64 exlusive thingy :3
void updateResolution(S32 w, S32 h);
void beginIggyCustomDraw4J(IggyCustomDrawCallbackRegion *region, CustomDrawData *customDrawRegion);
virtual CustomDrawData *setupCustomDraw(UIScene *scene, IggyCustomDrawCallbackRegion *region);
virtual CustomDrawData *calculateCustomDraw(IggyCustomDrawCallbackRegion *region);