From 48d536b3cb0e8e756e43f44874dbe7471f140cfc Mon Sep 17 00:00:00 2001 From: Christian Rauch Date: Mon, 17 Jun 2024 21:12:33 +0200 Subject: [PATCH] fix font rendering --- components/pango_display/src/widgets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/pango_display/src/widgets.cpp b/components/pango_display/src/widgets.cpp index 4856ba7ff..2469fc681 100644 --- a/components/pango_display/src/widgets.cpp +++ b/components/pango_display/src/widgets.cpp @@ -67,7 +67,7 @@ inline void DrawWindow(GlText& text, GLfloat x, GLfloat y, GLfloat z = 0.0) glMatrixMode(GL_PROJECTION); glPushMatrix(); // Pixel continuous coords - ProjectionMatrixOrthographic(0.0, d.v.w, 0.0, d.v.h, -1.0, 1.0).Load(); + ProjectionMatrixOrthographic(-0.5, d.v.w-0.5, -0.5, d.v.h-0.5, -1.0, 1.0).Load(); glMatrixMode(GL_MODELVIEW); glPushMatrix(); glLoadIdentity();