-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement initial display selection #2669
Implement initial display selection #2669
Conversation
d880c83
to
addad2e
Compare
addad2e
to
fe7fd0a
Compare
I've tested this on two-monitor system, but please test even if you have 1 monitor, to make sure that basic configuration keeps working, because I had to modify several things in graphics mode init. |
Testing on Windows 11, just using winsetup to change the initial display, it seems it works. I select 0 and get my primary display and I select 1 and get my secondary display. I think it would make more sense if it was 1 and 2, like it shows in Windows multiple displays settings, where the monitors get assigned a number from 1 to how many they are. About using the feature, the only curious thing is, if there is an application on the secondary display, the AGS game doesn't seem to load in "focus", while on primary display it seems it always loads in "focus" - by focus here I mean it loads the window or fullscreen below the application that is on secondary display, but also not focused so that the game doesn't start until one clicks the game icon in the start bar. Edit: would it be possible to add a command line parameter to it? It would take a number, like 1 or 2. Edit2: shouldn't it have the first parameter in winsetup be default, and default would mean like, the primary display or something? |
This apparently fixes an issue when the window is created on secondary monitor, which already has application windows on.
fe7fd0a
to
6694f69
Compare
This is a 1-based display index, where 0 would mean "use defaults".
Appears to work as expected. EDIT: If I had to nitpick, the default desktop resolution, and available ones, should change when selecting another monitor. |
The list of resolutions is supposed to be refilled, is it not? My both displays support same list of resolutions, so I cannot notice the difference. |
I see a repaint when changing Display index, but the availabel select options remain unchanged from what was loaded at start. |
Pushed a fix, please try again. |
It works now. All good. |
I had a thinking that once this is merged, the display selection feature is tied to the desktop platforms. While I don't think this will change soon, I wonder if it would be better to have a macro explicitly for this in |
Thanks, that's pretty good. I think this looks fine and we will probably only get larger testing once this hits a game in production. |
Resolve #2280, #2575
TESTING:
POSSIBLE TODOs:
I noticed in #2280 there's a extra suggestion to add a Editor preference that forces testing on a certain display.