As we talked in the shift register thread, I'm starting this one to discuss OBK Simulator.
@p.kaczmarek2
I see that the SDL Window and SDL Renderer uses the variables "WinWidth" and "WinHeight" in sim_sdl.cpp
the pre-set resolution is 1680x940, but when I start the program on my laptop (1920x1080) the program render is offset and some of the items in the render is out of my screen.
Window Mode:
Fullscreen mode:
The solution I found was to change the base resolution manually for now.
Here's an example using the resolution 1366x768 and using SDL_WINDOW_RESIZABLE in window flags on simulator.cpp:
Windowed mode:
Maximized Window:
FullScreen:
Now content Renders with top left corner in the right place. When I maximize the window or change to fullscreen the render doesn't adjust to the new resolution.
I am going to try to change that so the renderer adjusts every time there's a window change event, and later I find it useful to add the functionality to move and zoom the renderer.
@p.kaczmarek2
I see that the SDL Window and SDL Renderer uses the variables "WinWidth" and "WinHeight" in sim_sdl.cpp
the pre-set resolution is 1680x940, but when I start the program on my laptop (1920x1080) the program render is offset and some of the items in the render is out of my screen.
Window Mode:

Fullscreen mode:

The solution I found was to change the base resolution manually for now.
Here's an example using the resolution 1366x768 and using SDL_WINDOW_RESIZABLE in window flags on simulator.cpp:
Windowed mode:

Maximized Window:

FullScreen:

Now content Renders with top left corner in the right place. When I maximize the window or change to fullscreen the render doesn't adjust to the new resolution.
I am going to try to change that so the renderer adjusts every time there's a window change event, and later I find it useful to add the functionality to move and zoom the renderer.