forked from cafeberry/cafeberry
fix: windows64 only falling back to 720 & update 4JLibs
This commit is contained in:
@@ -323,7 +323,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
// Tick UI
|
||||
ui.tick();
|
||||
ui.render();
|
||||
RenderManager.Present(g_iScreenWidth, g_iScreenWidth);
|
||||
RenderManager.Present();
|
||||
ui.CheckMenuDisplayed();
|
||||
|
||||
// Tick Managers
|
||||
@@ -753,6 +753,9 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
|
||||
}
|
||||
|
||||
RenderManager.Initialise(g_pd3dDevice, g_pSwapChain);
|
||||
|
||||
//str1k3r - set the resolution that we have at time of launch
|
||||
RenderManager.setResolution(g_iScreenWidth, g_iScreenHeight);
|
||||
|
||||
app.loadStringTable();
|
||||
ui.init(g_pd3dDevice,g_pImmediateContext,g_pRenderTargetView,g_pDepthStencilView,g_iScreenWidth,g_iScreenHeight);
|
||||
@@ -878,8 +881,11 @@ 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
|
||||
RenderManager.setResolution(g_iScreenWidth, g_iScreenHeight);
|
||||
|
||||
// Present the frame.
|
||||
RenderManager.Present(g_iScreenWidth, g_iScreenWidth);
|
||||
RenderManager.Present();
|
||||
|
||||
ui.CheckMenuDisplayed();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user