@OJ1977 said in Error creating SDL window!:

here is the config.txt information:
...

This is not the config.txt present on the RetroPie Pi4 image.
As I said before, the config.txt on the RetroPie image already has the lines:

... [pi4] # Enable DRM VC4 V3D driver on top of the dispmanx display stack dtoverlay=vc4-fkms-v3d max_framebuffers=2

Judging from the extra lines added at the end, I assume you're either using a RetroFlag/3rd party modified image or some additional scripts from RetroFlag have been run and have modified the config.txt.