@lucasferr See if this link help you:

https://forum.recalbox.com/topic/22963/recalbox-not-work-well-with-dpi-lcd-on-4b