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

dead if in configure_render_tree() #20

Open
ReiquelApplegate opened this issue Apr 4, 2024 · 2 comments
Open

dead if in configure_render_tree() #20

ReiquelApplegate opened this issue Apr 4, 2024 · 2 comments

Comments

@ReiquelApplegate
Copy link
Contributor

	rti_screen.visible = false;

	if (rti_screen.visible)
	{
		int w = rti_screen.width;
		int h = rti_screen.height;
		float xscale = (float)resx/w;
		float yscale = (float)resy/h;
		if (scaleForceInteger)
		{
			xscale = intscale(xscale);
			yscale = intscale(yscale);
		}

		rti_screen.set_transform({
			.x = (int)(resx - w*xscale) / 2,
			.y = (int)(resy - h*yscale) / 2,
			.xscale = xscale,
			.yscale = yscale,
		});
		// TODO: don't recreate screen bitmap when alternating fullscreen mode.
		rti_screen.a4_bitmap = zqdialog_bg_bmp ? zqdialog_bg_bmp : screen;
	}
@ReiquelApplegate
Copy link
Contributor Author

This is in render.cpp

@ReiquelApplegate
Copy link
Contributor Author

Commented out in e45fd9b

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