feat: new windows icon, update 4JLibs & vsync stuff

This commit is contained in:
2026-09-07 17:08:08 -04:00
parent 8163eb6f9a
commit addac20a35
7 changed files with 27 additions and 9 deletions
@@ -370,7 +370,7 @@ ATOM MyRegisterClass(HINSTANCE hInstance)
wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
wcex.lpszMenuName = "Minecraft";
wcex.lpszClassName = "MinecraftClass";
wcex.hIconSm = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MINECRAFTWINDOWS));
wcex.hIconSm = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_MINECRAFTWINDOWS64));
return RegisterClassEx(&wcex);
}
@@ -744,11 +744,6 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
app.loadMediaArchive();
if(launchArgs.vsync)
{
RenderManager.SetVSync(false); //str1k3r - vsync is set to true by default in 4JLibs
}
RenderManager.Initialise(g_pd3dDevice, g_pSwapChain);
//str1k3r - set the resolution that we have at time of launch
@@ -879,7 +874,6 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
ui.render();
//str1k3r - update RenderManager's & gdraw's resolution
RenderManager.setResolution(g_iScreenWidth, g_iScreenHeight);
ui.updateResolution(g_iScreenWidth, g_iScreenHeight);
// Present the frame.
@@ -903,6 +897,19 @@ int APIENTRY _tWinMain(_In_ HINSTANCE hInstance,
wasF11Pressed = isF11Pressed;
if(app.GetGameStarted())
{
if(ui.IsPauseMenuDisplayed(ProfileManager.GetPrimaryPad()))
{
if(launchArgs.vsync) RenderManager.SetVSync(true);
}
else
{
if(launchArgs.vsync) RenderManager.SetVSync(false);
}
}
if(launchArgs.vsync && !app.GetGameStarted()) RenderManager.SetVSync(true);
// 4J-PB - Update the trial timer display if we are in the trial version
if(!ProfileManager.IsFullVersion())
{