Skip to content

Commit

Permalink
Fixed libretroConfig.py for rg28xx screen rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
acmeplus committed Dec 4, 2024
1 parent 9d803b2 commit 7b14cfd
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,13 @@ def createLibretroConfig(generator: Generator, system: Emulator, controllers: Co
retroarchConfig['vrr_runloop_enable'] = 'false'

# required at least for vulkan (to get the correct resolution)
retroarchConfig['video_fullscreen_x'] = gameResolution["width"]
retroarchConfig['video_fullscreen_y'] = gameResolution["height"]
# For rotated screens like the rg28xx
if gameResolution["width"] < gameResolution["height"]:
retroarchConfig['video_fullscreen_x'] = gameResolution["height"]
retroarchConfig['video_fullscreen_y'] = gameResolution["width"]
else:
retroarchConfig['video_fullscreen_x'] = gameResolution["width"]
retroarchConfig['video_fullscreen_y'] = gameResolution["height"]

retroarchConfig['video_black_frame_insertion'] = 'false' # don't use anymore this value while it doesn't allow the shaders to work
retroarchConfig['pause_nonactive'] = 'false' # required at least on x86 x86_64 otherwise, the game is paused at launch
Expand Down

0 comments on commit 7b14cfd

Please sign in to comment.