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

Fullscreen not working for cinema_theatron, other maps partially fine #144

Open
RadovanKaradzic opened this issue Jul 21, 2018 · 5 comments

Comments

@RadovanKaradzic
Copy link

The fullscreen feature doesn't seem to be working these last few months, but specifically on all screens on the 'cinema_theatron' map.

If you attempt to go into fullscreen, no panel is drawn at all, and the player simply remains frozen staring at the map itself, where the original world screen is not drawn anymore.

Other default supported maps seem to be partially fine with this.
For example, on theater_gcinema, only the screens facing angle (0, 90 or -90, 0) work, but perpendicular to this they do not.

A temporary fix for this is to remove the check:

if theater.Fullscreen then return end -- Don't render twice

But of course, this results in drawing both the fullscreen and world panel, which is rather laggy.

Any ideas or suggestions?

@RadovanKaradzic
Copy link
Author

RadovanKaradzic commented Jul 21, 2018

Issue solved. Replicate this line from the world screen draw:

surface.SetDrawColor( 0, 0, 0, 255 )

Into the DrawFullscreen() function, round abouts here:

Potentially an engine-level race condition with surface.SetDrawColour() or DirectX/OpenGL equivalents (GlColor4f/shaders/etc.), something messing with these values at same time as the texture draw.

@VinnieTeix
Copy link

Not sure if it helps but I've noticed that when you hover you mouse to anything that "reacts" to it like the audio arrow when you hold tab, the fullscreen comes back but disappears again when you move your mouse away from it.
Also you could make a instruction of applying this code to the mod?
Thank you.

@VinnieTeix
Copy link

Do I only need to replicate the surface.SetDrawColor( 0, 0, 0, 255 ) without removing the check from if theater.Fullscreen then return end -- Don't render twice or do I need to do both?

@KuwuroUsagi
Copy link

-snip-or do I need to do both?

Ideally you don't want to render it twice so leave it be and look to see if the SetDrawColor line will fix it.

Another temporary fix I've seen is seemingly ulx blind allows fullscreen to work fine,
Even if the amount is only 1.

@VinnieTeix
Copy link

VinnieTeix commented Jan 2, 2019

I was asking because when I added the surface.SetDrawColor( 0, 0, 0, 255 ) It didn't work but turns out I forgot to uninstall the Workshop version of the Cinema gamemode which conflicted with the Cinema gamemode folder. So, after uninstalling the Workshop version of Cinema it worked prefectly fine.

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