Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rotate n relocate #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

rautonkar
Copy link

Relocating buffers into bss if desired.

Added simple changes which should prevent malloc if pointer is already assigned during DG_Init. This applies to both I_VideoBuffer and DG_ScreenBuffer.

Added in code to rotate the buffer

Clockwise buffer rotation is disabled by default. Can be turned on by enabling the preprocessor in the i_video.c file or by adding in a compiler preprocessor flag ROTATE_SCREENBUFFER.
By manipulating at cmap; you can bypass the need to create a third buffer and a copy operation which will degrade performance. The code is not tested at higher resolutions.

@ozkl
Copy link
Owner

ozkl commented Apr 27, 2024

I was goint to merge this but when I tested the code, it gave me this even in 320x200 resolution:

image

I think this would add value to doomgeneric as it could be useful in some embedded environments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants