chore: cleanup names

This commit is contained in:
2026-09-06 19:08:30 -04:00
parent 7b4821d329
commit afbd3fef00
36 changed files with 202 additions and 251 deletions
@@ -95,12 +95,37 @@ void ConsoleUIController::render()
#endif
}
//str1k3r - update gdraw resolution
void ConsoleUIController::updateResolution(S32 w, S32 h)
{
#ifdef _ENABLEIGGY
gdraw_D3D11_SetRendertargetSize(w, h);
#endif
//str1k3r - since we have to update the resolution in 3 spots this just updates them all
void ConsoleUIController::updateResolution(int w, int h)
{
#ifdef _ENABLEIGGY
S32 currentWidth = ui.getScreenWidth();
S32 currentHeight = ui.getScreenHeight();
ui.setScreenWidth(w);
ui.setScreenHeight(h);
gdraw_D3D11_SetRendertargetSize(w, h);
/*gdraw_D3D11_setViewport_4J();
if(w != currentWidth || h != currentHeight)
{
// PIEBOT: we buy junk code
int argumentRes = (w >= 1920.0f) ? 1920 :
(w >= 1280) ? 1280 :
(w >= 960.0f) ? 960 :
480;
int currentRes = (currentWidth >= 1920.0f) ? 1920 :
(currentWidth >= 1280.0f) ? 1280 :
(currentWidth >= 960.0f) ? 960 :
480;
if (argumentRes != currentRes)
ui.ReloadSkins();
}*/
#endif
RenderManager.setResolution(w, h);
}
void ConsoleUIController::beginIggyCustomDraw4J(IggyCustomDrawCallbackRegion *region, CustomDrawData *customDrawRegion)