Skip to content

Commit

Permalink
fix font rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch committed Jun 17, 2024
1 parent 13e4a18 commit 23a5c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/pango_display/src/widgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 23a5c17

Please sign in to comment.