chore: cleanup names

This commit is contained in:
str1k3r committed 2026-09-06 19:08:30 -04:00
1 parent 7b4821d329
commit afbd3fef00
36 files changed
+202 -251

No files matched your search

@@ -888,7 +888,7 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
ui.CheckMenuDisplayed();
// Any threading type things to deal with from the xui side?
app.HandleXuiActions();
app.HandleUIActions();
isF11Pressed = (GetAsyncKeyState(VK_F11) & 0x8000) != 0;
@@ -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)
@@ -12,7 +12,7 @@ public:
void render();
//str1k3r - updateResolution is a Windows64 exlusive thingy :3
void updateResolution(S32 w, S32 h);
void updateResolution(int w, int h);
void beginIggyCustomDraw4J(IggyCustomDrawCallbackRegion *region, CustomDrawData *customDrawRegion);
virtual CustomDrawData *setupCustomDraw(UIScene *scene, IggyCustomDrawCallbackRegion *region);
virtual CustomDrawData *calculateCustomDraw(IggyCustomDrawCallbackRegion *region);