joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.59k stars 376 forks source link

How to enable rounded corners in Windows 11 #4839

Open peter8777555 opened 5 months ago

peter8777555 commented 5 months ago

Question

z1

Have you checked that no similar question(s) exist?

Code of Conduct & Contributing Guidelines

rderooy commented 5 months ago

I think you stand a better chance of it integrating better with the SDL2 build.

joncampbell123 commented 5 months ago

Why do you want rounded corners?

The "everything has rounded corners" in Mac OS is annoying enough because it cuts off the corners of the DOS screen.

joncampbell123 commented 5 months ago

I'm perfectly fine with it as an option you can enable though.

peter8777555 commented 5 months ago

To joncampbell123:

The "everything has rounded corners" in Windows 11. So DosBox-X looks like strange.

The "everything has NOT rounded corners" in Windows XP So i do NOT want to rounded corners.

I want to ALL windows with the same as windows style.

peter8777555 commented 5 months ago

To joncampbell123:

Yes,add an option,it is more better. User can Enable/Disable the rounded corners.

I think the option with Enable/Disable/Windows switchs.

Enable:Always rounded corners. Disable:Always NOT rounded corners.

Windows:By Windows OS. For Example: If Windows XP,it Always NOT rounded corners. If Windows 11,it Always rounded corners.

I suggestion "Windows" option is DEFAULT.

joncampbell123 commented 5 months ago

Ah, well, here we go: https://learn.microsoft.com/en-us/windows/win32/api/dwmapi/ne-dwmapi-dwm_window_corner_preference

joncampbell123 commented 5 months ago

For Mac OS, this doesn't exactly say how but it might lead to a similar option: https://forums.developer.apple.com/forums/thread/102475

joncampbell123 commented 5 months ago

I will release March 1st, then this feature can be added after that, OK?

peter8777555 commented 5 months ago

To joncampbell123:

It is OK. Thank you very much.

maron2000 commented 5 months ago

There was an option already in dosbox-x.reference.full.conf

# forcesquarecorner: If set, DOSBox-X will force square corners (instead of round corners) for the DOSBox-X window when running in Windows 11.

round round2

peter8777555 commented 5 months ago

There was an option already in dosbox-x.reference.full.conf

# forcesquarecorner: If set, DOSBox-X will force square corners (instead of round corners) for the DOSBox-X window when running in Windows 11.

To maron2000 :

Yes,i have tested and it is OK.

forcesquarecorner: If set, DOSBox-X will force square corners (instead of round corners) for the DOSBox-X window when running in Windows 11.

forcesquarecorner default is TRUE.

I must use batch file to switch the forcesquarecorner option.

WinAll.bat to set forcesquarecorner=True Win11.bat to set forcesquarecorner=False

Now,forcesquarecorner just True/False options, If add a "Auto" option is more better, The "Auto" by Windows OS.