From 6c00c069ccf08ef5e577c16acc78a5b1f53a0f8f Mon Sep 17 00:00:00 2001 From: LLLL Colonq Date: Sat, 18 Jan 2025 20:46:08 -0500 Subject: Rework font rendering, configurable resolution --- src/shader.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/shader.rs') diff --git a/src/shader.rs b/src/shader.rs index 46deb82..cbaf3ee 100644 --- a/src/shader.rs +++ b/src/shader.rs @@ -210,8 +210,8 @@ impl Shader { glam::Vec3::new(halfwidth, halfheight, 1.0), rot.clone(), glam::Vec3::new( - -context::RENDER_WIDTH / 2.0 + pos.x + halfwidth, - context::RENDER_HEIGHT / 2.0 - pos.y - halfheight, + -ctx.render_width / 2.0 + pos.x + halfwidth, + ctx.render_height / 2.0 - pos.y - halfheight, 0.0, ), ) -- cgit v1.2.3