Bug 1209 - Cannot use lower resolutions on Xinerama (screen is centered between displays)
Status: RESOLVED DUPLICATE of bug 1275
Alias: None
Product: Unreal Tournament 2004
Classification: Unclassified
Component: client
Version: 3120 (Initial demo release)
Hardware: PC Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2004-02-15 08:02 EST by Stefan Gehn
Modified: 2004-03-02 10:05:28 EST
0 users

See Also:


Attachments
Patch fixing origin of screen (at least on this setup) (799 bytes, patch)
2004-03-02 10:05 EST, Stefan Gehn

Description Stefan Gehn 2004-02-15 08:02:14 EST
The only working fullscreen resolutions that show properly one _one_ of the 
two displays are 1280x1024 and 800x600. All others (didn't try lower than 
800x600) display centered between my two displays and thus are unusable. 
 
This worked fine in ut2003 (i.e. I can also properly use 1152x864 and 1024x768 
in there) so I guess it's a regression (btw, also works fine in all other 
games, including q1, q2, q3, ut and tuxracer). 
 
My nvidia MetaModes line in XF86Config-4 is: 
Option  "MetaModes"  "1152x864,1280x1024; NULL,1280x1024; NULL,1152x864; 
NULL,1024x768; NULL,800x600; NULL,640x480; NULL,512x384; NULL,400x300; 
NULL,320x240" 
 
Btw, to have it work at all, i.e. without the screen being moved half out of 
my screen I have to use a patched libSDL (using latest SDL12 CVS + my patch). 
Damn nvidia drivers should let me rearrange the displays so the left one is 
actually no. 1 :(
Comment 1 Ryan C. Gordon 2004-02-21 10:56:09 EST

*** This bug has been marked as a duplicate of 1275 ***
Comment 2 Stefan Gehn 2004-02-21 11:19:24 EST
Hmm, I fail to see why this is marked as a duplicate. 
I do have SDL CVS and use it for both ut2003 and ut2004demo (i.e. for both I 
have the static libSDL moved out of the way to take my system libSDL). 
BUT I cannot use 1024x768 or 1152x864 in ut2004 as that will switch to my 
biggest resolution and display ut2004 centered on both screens (and thus 
unplayable). What I want is the old behaviour, i.e. if I tell ut2004 to use 
1024x768 it should switch to that resolution. 
Comment 3 Ryan C. Gordon 2004-02-22 11:02:00 EST
It's a duplicate because I'm consolidating bugs. The solution here is "update
SDL"  and apply a patch, so I'm linking it to the "SDL needs to be updated" bug
report.

I could have just as easily marked the other one a duplicate of this.

--ryan.

Comment 4 Ryan C. Gordon 2004-03-02 05:14:02 EST
Stefan,

Can you point me to the patch you use for SDL? I'd like to see if it's general
purpose enough for inclusion in SDL's CVS (and ut2004 retail).

Thanks,
--ryan.

Comment 5 Stefan Gehn 2004-03-02 10:05:28 EST
Created attachment 211 [details]
Patch fixing origin of screen (at least on this setup)

I never sent this anywhere because I assume it's a hack.
The problem with my system is that the logical display 0 is not the left one
but the right one. For some reason SDL doesn't find the right origin for my
left disply (it's 0,0 of course) but takes the one of logical display 0 (i.e.
the right one).
If anybody can point me to the SDL developer who did the Xinerama work I'll
contact him.