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

Render issue in window mode #22

Open
midzer opened this issue Jan 5, 2024 · 0 comments
Open

Render issue in window mode #22

midzer opened this issue Jan 5, 2024 · 0 comments

Comments

@midzer
Copy link

midzer commented Jan 5, 2024

Hi @ptitSeb

I am working on a web port of friking shark right now.

Game works so far, but I have issues with rendering the game in windowed view (I prefer to not have FullScreen enabled by default):

The MainMenu entries are overlapping the viewport, that means they are not scaled. When I click on Options for example the positioning is correct.

Same overlapping for New Game dialog.

Funny thing is: when I switch to FullScreen with STRG+ALT+ENTER from MainMenu positioning of the viewport is wrong, too. But when I enter Options afterwards, the text of Options dialog is presented in full height -> correctly.

I have not tested whether this is coming from Emscripten, but I doubt it. I've ported some game already and not had this kinda issue yet.

I have set

System="GameGUI"
Class="CGameGUIManager"
Name="GUIManager"
Data
{
Screen
{
	FullScreen=0
	WindowReferenceSystem=1
	CenterWindow=0
	VerticalSync=0
	Resolution
	{	
		w=640
		h=480
	}
	WindowRect
	{
		w=640
		h=480
	}
}
}

and are now continueing to figure out whats going wrong...

Have a nice weekend
midzer

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

1 participant