After setting a custom layout -> can’t click the second screen anymore

Hello,

I just set the custom layout configuration for my 4k monitor:

custom_layout\default=false
custom_layout=true
custom_top_left\default=true
custom_top_left=0
custom_top_top\default=true
custom_top_top=0
custom_top_right\default=false
custom_top_right=2400
custom_top_bottom\default=false
custom_top_bottom=1440
custom_bottom_left\default=false
custom_bottom_left=2400
custom_bottom_top\default=false
custom_bottom_top=1200
custom_bottom_right\default=false
custom_bottom_right=960
custom_bottom_bottom\default=false
custom_bottom_bottom=240

It works but if I set that, I can’t click the second screen anymore :frowning:

Has anyone an idea, why?

Thanks in advance.

Bye The_Unknown

In order for us to provide better support, we need to see the log generated by Citra. This guide will walk you through how you can obtain the log file: How to Upload the Log File.

Anyone :frowning: ? At the moment I just use the Hot key for toggling the layouts, but the custom layout would be far cooler :wink:

It’s reversed.

custom_bottom_left=2400
custom_bottom_top=1200
custom_bottom_right=960
custom_bottom_bottom=240

It needs to be:
left < right
top < bottom

You did it correctly for the top screen where you set left to 0 which is less than right’s 2400, likewise top_top is 0 which is less than bottom’s 1440.

Your bottom_left is 2400 which is greater than bottom_right’s 960, same goes for bottom_top’s 1200 which is greater than bottom_bottom’s 240

Mhm, I tried

custom_top_left\default=true
custom_top_left=0
custom_top_top\default=true
custom_top_top=0
custom_top_right\default=false
custom_top_right=2400
custom_top_bottom\default=false
custom_top_bottom=1440
custom_bottom_left\default=false
custom_bottom_left=960
custom_bottom_top\default=true
custom_bottom_top=240
custom_bottom_right\default=false
custom_bottom_right=2400
custom_bottom_bottom\default=false
custom_bottom_bottom=1200

which is like you advised but then the bottom screen is on top of the top one :frowning_face:

You might have to make empty space on the right side so the bottom screen can be beside the top screen. Otherwise, yes it will be on top.

You are in control how big the screens will be and where to place them.

It looks like you have a 1440p monitor, there is very little space left over if the monitor resolution is 2560x1440. You decided that the top screen would fill 2400 pixels from the left which means you only have 2560-2400=160 pixels left over for the bottom screen to not overlap which is half of its default 320x240 resolution. I don’t think you would want a 160 pixels wide bottom screen, right?

You will have play around with the numbers for what will suit you best.

I have a 4k monitor and it is set (like the emulator’s video) to 3840x2160.

Oh ok, well in that case just set left to 2400(where the top screen ends), right would be up to 3840. I don’t know how large you want the bottom screen to be but if you want it to be 3x its native size (320*3 = 960) just end it at (2400+960 = 3360). Vertically that would be 240*3 = 720 so 1200(where you wanted the bottom screen to end) - 720 = 480.

custom_bottom_left=2400
custom_bottom_top=480
custom_bottom_right=3360
custom_bottom_bottom=1200

As you can see it’s just basic math. I do not know how you want it to look like so again, play around with the numbers and see what you like.

1 Like

Thanks for your help. I’ll give it a try :smile:

Nevertheless this way of configuration is like a pain in the … :wink: Easiest would be to let the user “draw” both screens on a canvas and take the numbers from the two selection boxes. May be a feature for future release?

There was GUI for it in the original PR:

You said you are a programmer on GitHub earlier today, maybe you are up to the task for what you are suggesting? :stuck_out_tongue: Citra is open source so everyone is free to open PR.

The reason it was removed is due to comments like these two:
https://github.com/citra-emu/citra/pull/2512#issuecomment-281890538
https://github.com/citra-emu/citra/pull/2512#issuecomment-281891832

I thought about that, but I’m not into qt development at all I’m afraid :frowning_face:

Nevertheless, just for the record, with your help I did a working configuration for the ones who need it:

custom_layout=true
custom_top_left\default=true
custom_top_left=0
custom_top_top\default=true
custom_top_top=0
custom_top_right\default=false
custom_top_right=2400
custom_top_bottom\default=false
custom_top_bottom=1440
custom_bottom_left\default=false
custom_bottom_left=2400
custom_bottom_top\default=false
custom_bottom_top=1200
custom_bottom_right\default=false
custom_bottom_right=3840
custom_bottom_bottom\default=false
custom_bottom_bottom=2160 

THANKS for your awesome work with this emulator!!

1 Like