Skip to content
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

[GL 2.0 / GL 3.2 Core] Linux: Game runs on wrong screen when disabling windowed mode #387

Open
mrmatteastwood opened this issue Sep 3, 2021 · 3 comments

Comments

@mrmatteastwood
Copy link

Steps to Reproduce:

  1. Compile bstone for Linux on a multi-screen PC
  2. Launch bstone executable
  3. In main menu, go to Game Options > Video > Mode
  4. Select Renderer GL 2.0 or GL 3.2 Core
  5. Disable option "Is Windowed"
  6. Confirm

Expected Result:
The game should switch to full screen and stay on the current monitor.

Current Result:
Game jumps to different monitor.

Notes:

  • Trying to move the window to another screen using Super+Shift+Arrow Keys moves a static snapshot of the window to the other screen. One can still move around the UI, but the image no longer changes.
  • Issue only occurs with the two renderers listed in step 4 above.
  • Video showing the issue: https://youtu.be/1Wd7iBmW6PM
  • I compiled bstone in an Xubuntu VM, then moved the resulting install folder to my host machine (Linux Mint 20.2).
  • My system specs: https://termbin.com/t2eyy
@mrmatteastwood mrmatteastwood changed the title [GL 2.0 / GL 3.2 Core] Game runs on wrong screen when disabling windowed mode [GL 2.0 / GL 3.2 Core] Linux: Game runs on wrong screen when disabling windowed mode Sep 3, 2021
@bibendovsky
Copy link
Owner

What about the latest development version?
There is no exclusive fullscreen mode beginning with v1.2.12 (at least from a92fe65).

@mrmatteastwood
Copy link
Author

mrmatteastwood commented Sep 4, 2021

Afraid I can't check, since the latest dev build won't launch:

./bstone
BStone v1.2.12

Looking for game content.
Found "Blake Stone: Aliens Of Gold" v3.0.
Content source: working dir

Data path: "/home/thebrightside/zzLocal/Test/bstone/"
Mod path: ""
Profile path: "/home/thebrightside/.local/share/bibendovsky/bstone/"
Screenshot path: "/home/thebrightside/.local/share/bibendovsky/bstone/"

[SND] Initializing audio
[SND] ------------------
[SND_OAL] Default library: "libopenal.so"
[SND_OAL] Custom library: ""
[SND_OAL] Custom device: ""
[SND] Channel count: 2
[SND] Sample rate: 44100 Hz
[SND] Mix size: 40 ms
[SND] Effects volume: 10 / 20
[SND] Music volume: 5 / 20
[SND] OPL3 type: DBOPL
[SND] Resampling low-pass filter: On
[VIDSW]
[VIDSW] Initializing software accelerated video system.
[VID] Getting display mode.

[VID] --------------------
[VID] Common configuration
[VID] --------------------
[VID] Renderer: software
[VID] Window positioned: false
[VID] Windowed x: 0
[VID] Windowed y: 0
[VID] Windowed width: 640
[VID] Windowed height: 480
[VID] UI stretched: false
[VID] Widescreen: true
[VID] 2D texture filter: nearest
[VID] 3D texture image filter: nearest
[VID] 3D texture mipmap filter: nearest
[VID] Texture anisotropy: 16
[VID] Texture upscale filter: xbrz
[VID] Texture upscale xBRZ factor: 6
[VID] Anti-aliasing kind: msaa
[VID] Anti-aliasing value: 32
[VID] --------------------
[VIDSW] Creating window.
[VIDSW]
[VIDSW] Initializing renderer.
[VIDSW] Available renderer drivers:
[VIDSW] 1. opengl
[VIDSW] 2. opengles2
[VIDSW] 3. software
[VIDSW] Using VSync.
[VIDSW] Creating renderer.
[ERROR] [VID] [SDL] Renderer already associated with window
[CRITICAL] [SDL] Renderer already associated with window

fwiw, I saved the output of the whole compiling process this time. Since I'm a noob at compiling, perhpas I'm doing something wrong there. » https://pastebin.com/uHzvveWi

Notes: btw, bstone runs flawlessly on Linux using Wine. Also, thanks for this awesome source port. :-)

@bibendovsky
Copy link
Owner

SDL error fixed (#390).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants