mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-28 00:12:40 +00:00
Allow resizing by default and recreate swapchain on resize (#763)
* Add `stretch to window` support * Address comment * Allow window resizing by default and recreate swapchain on resize --------- Co-authored-by: nmzik <Nmzik@mail.ru>
This commit is contained in:
1 parent
f68c77d785
commit
019929587c
2 files changed
+33
-15
No files matched your search
@@ -783,14 +783,13 @@ static void WindowCreate(WindowContext& context) {
|
||||
}
|
||||
|
||||
SDL_SetWindowPosition(context.window, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED);
|
||||
SDL_SetWindowResizable(context.window, false);
|
||||
HostInputInit(context.window);
|
||||
InitializeSystemOverlayInput(context.window);
|
||||
context.UpdateIcon();
|
||||
}
|
||||
|
||||
uint32_t WindowContext::InitialWindowFlags(bool fullscreen) noexcept {
|
||||
auto flags = static_cast<uint32_t>(SDL_WINDOW_VULKAN);
|
||||
auto flags = static_cast<uint32_t>(SDL_WINDOW_VULKAN | SDL_WINDOW_RESIZABLE);
|
||||
if (fullscreen) {
|
||||
flags |= static_cast<uint32_t>(SDL_WINDOW_FULLSCREEN);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user