Canardia Posted 21 hours ago Posted 21 hours ago Without the WINDOW_RESIZABLE it works: int w = 1920/2; int h = 1080/2; auto style = WINDOW_CENTER | WINDOW_TITLEBAR | WINDOW_RESIZABLE; Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■
reepblue Posted 20 hours ago Posted 20 hours ago Is this with a frame buffer attached to the window. If so, that flag isn't supported. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon!
Canardia Posted 20 hours ago Author Posted 20 hours ago Is there any other way to maximize a window, like pressing the maximize button on title bar? I need it only once when the window is created, before I create the framebuffer. It should look like this (the windows 11 titlebar is visible below the window): Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■
reepblue Posted 19 hours ago Posted 19 hours ago Not with the framebuffer. You'll need to create a new window. See Source/Game/GameMenu.cpp for how the stock code handles changing the window size. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon!
Canardia Posted 19 hours ago Author Posted 19 hours ago The thing is, I don't need to resize the window, I only want it be in maximized mode when it's created. In maximized mode the title bar gets thinner. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■
Solution Canardia Posted 18 hours ago Author Solution Posted 18 hours ago I found a workaround which is actually better than having a thin title bar: int w = 1920; int h = 1080-48; auto style = (WindowStyles)0x00000000L; Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■
Josh Posted 15 hours ago Posted 15 hours ago There is an Initialize() command in C++ that can accept a structure, with a setting to disable multithreading. This will allow a framebuffer to be created on a resizable window, but it's not good for performance. I don't recommend using this for games, only for GUI-driven windowed applications. Quote Let's build cool stuff and have fun.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.