I have my video game display coded so that "ALLEGRO_FULLSCREEN_WINDOW" mode will do the largest integer scale possible, then use "al_set_clipping_rectangle" to preserve the aspect ratio.
I expect the "borders" of the clipping rectangle to be black, but instead, they flicker with what looks like screen artifacts. (See attachments)
Here is an excerpt from my display code:
Full code here:
https://github.com/drcouzelis/colorwandcastle/blob/master/src/display.c
Is there something I can do to prevent the seizure-inducing flickering around the display area?
My computer:
Arch Linux (current)
Radeon HD 5450, with open source "radeon" driver
Did you forget the attachment?
Haha
Here are the attachments.
Can you post the source code of set_display_transform?
Also note that the parameters to al_create_display are ignored when you use ALLEGRO_FULLSCREEN_WINDOW.
I can't say what you're doing for sure, but it sounds like you're leaving video memory uninitialized, with undefined contents. Are you clearing the screen?
Can you post the source code of set_display_transform?
The full code is here: https://github.com/drcouzelis/colorwandcastle/blob/master/src/display.c
Here it is again, for convenience:
Are you clearing the screen?
I think so...
Full source: https://github.com/drcouzelis/colorwandcastle/blob/master/src/run.c
Bumping this thread so it doesn't get lost.
Can you provide a minimal working (failing) example that does this?