forked from cafeberry/cafeberry
chore: cleanup names
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user