Skip to content

Commit

Permalink
fix font rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
christianrauch authored and christian-rauch committed Jun 18, 2024
1 parent 70c219d commit 2e67335
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 2e67335

Please sign in to comment.