Screen affinity for fullscreen on a dual screen setup under Linux

General information and assistance with DOSBox.

Screen affinity for fullscreen on a dual screen setup under Linux

Postby BastetFurry » 2017-12-22 @ 22:42

Hey :)

Having a two screen setup on my Linux box, how do i tell Dosbox to use the left screen when going fullscreen and not the right(wrong ;) ) screen?

EDIT for those who don't want to dig trough the thread:

Put
Code: Select all
export SDL_VIDEO_FULLSCREEN_DISPLAY=0

into .bashrc, your number might differ.

Set your screen resolution in dosbox.conf:
Code: Select all
fullresolution=1920x1200
Last edited by BastetFurry on 2017-12-23 @ 10:04, edited 1 time in total.
User avatar
BastetFurry
Newbie
 
Posts: 20
Joined: 2009-8-10 @ 22:28

Re: Screen affinity for fullscreen on a dual screen setup under Linux

Postby Dominus » 2017-12-22 @ 23:22

I think you can’t. It’s an SDL problem
User avatar
Dominus
DOSBox Moderator
 
Posts: 7560
Joined: 2002-10-03 @ 09:54
Location: Vienna or Ludwigsburg

Re: Screen affinity for fullscreen on a dual screen setup under Linux

Postby BastetFurry » 2017-12-23 @ 01:30

Thats unfortunate, then i go and check if i can hack SDL to do my biddings.
User avatar
BastetFurry
Newbie
 
Posts: 20
Joined: 2009-8-10 @ 22:28

Re: Screen affinity for fullscreen on a dual screen setup under Linux

Postby BastetFurry » 2017-12-23 @ 01:46

I am onto something:

Code: Select all
export SDL_VIDEO_FULLSCREEN_DISPLAY=0


But now i don't get a streched image anymore.

EDIT:
Setting

Code: Select all
fullresolution=1920x1200


did the trick.
Off to place that export into .bashrc :D
User avatar
BastetFurry
Newbie
 
Posts: 20
Joined: 2009-8-10 @ 22:28

Re: Screen affinity for fullscreen on a dual screen setup under Linux

Postby Serious Callers Only » 2017-12-23 @ 04:25

The xrandr driver controls if the image gets stretched in linux fullscreen or not. The default is actually to stretch but you can set it to 'full aspect' which stretches preserving aspect ratio.

https://www.reddit.com/r/emulation/comm ... d/drewr16/

I find it highly strange you want to 'stretch' the image, and it should happen by default anyway.
Serious Callers Only
Member
 
Posts: 368
Joined: 2003-4-26 @ 21:34

Re: Screen affinity for fullscreen on a dual screen setup under Linux

Postby BastetFurry » 2017-12-23 @ 10:02

Serious Callers Only wrote:I find it highly strange you want to 'stretch' the image, and it should happen by default anyway.

Nope, i was getting a pixel perfect DOS shell on my screen, was almost ready to deploy the magnification glasses.
Strangely the Dosbox window stays open, just without content, by the way.
But yeah, works for me now and when someone else looks for a solution it now stands there. :D
User avatar
BastetFurry
Newbie
 
Posts: 20
Joined: 2009-8-10 @ 22:28

Re: Screen affinity for fullscreen on a dual screen setup under Linux

Postby Dominus » 2017-12-23 @ 10:24

Great work ;)
User avatar
Dominus
DOSBox Moderator
 
Posts: 7560
Joined: 2002-10-03 @ 09:54
Location: Vienna or Ludwigsburg


Return to DOSBox General

Who is online

Users browsing this forum: No registered users and 2 guests