Is your feature request related to a problem? Please describe.
Later titles such as Pump It Up Prime do not work on Wayland paired with Xwayland. The problem lies in sub_80698F0 (prime 1.22), where if DisplayHeight(disp, DefaultScreen(disp)) is greater than 719 then the engine insists on calling XF86VidModeSetViewPort from XFree86-VidModeExtension to force setting a specific resolution. This is not supported in Wayland. You will find the log at the bottom of this issue.
NOTE: While this issue is similar to #21, the consequence of a different environment leads to a very different outcome.
Describe the solution you'd like
In the game code there is the following check if ( !byte_A00ED34 && screens[default_screen].height > 719 ). Maybe patching that 719 as 32767 might help.
Describe alternatives you've considered
A dirty, cheap solution is to add the following piece of code in gfx.cXOpenDisplay :
Feature request
Is your feature request related to a problem? Please describe.
Later titles such as Pump It Up Prime do not work on Wayland paired with Xwayland. The problem lies in
sub_80698F0
(prime 1.22), where ifDisplayHeight(disp, DefaultScreen(disp))
is greater than719
then the engine insists on callingXF86VidModeSetViewPort
fromXFree86-VidModeExtension
to force setting a specific resolution. This is not supported in Wayland. You will find the log at the bottom of this issue.NOTE: While this issue is similar to #21, the consequence of a different environment leads to a very different outcome.
Describe the solution you'd like
In the game code there is the following check
if ( !byte_A00ED34 && screens[default_screen].height > 719 )
. Maybe patching that719
as32767
might help.Describe alternatives you've considered
A dirty, cheap solution is to add the following piece of code in
gfx.c
XOpenDisplay
:Mocking
XF86VidModeSetViewPort
to avoid the call to be made seems to not be possible.Additional context