I need some help with switching to fullscreen correctly!

I recently began learning SDL and OpenGL, and I am trying to make a function to toggle fullscreen correctly.

I have tried to initialize my window with SDL_WINDOW_ALLOW_HIGHDPI, but it doesn’t work…

The forum only allows me to upload one picture, So I have to make them all in one picture…sorry

Sorry for my English…

I assume you’re using visual studio? Go to your project properties, Manifest Tool>Input and Output>DPI Awareness>High DPI Aware. That’s how I do it anyways, I haven’t tried the SDL way to do it.