Skip to content

Commit

Permalink
Fix title positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
dc2917 committed Nov 9, 2024
1 parent e0d1b77 commit d8b8fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hershey_xlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void draw_font(
w = title.get_width();
h = title.get_height();
draw_glyphs(
display, win, gc, title, width * scale / 2 - w / 2, h + 20 * scale, scale
display, win, gc, title, position(0.5, width, w*scale), h + 20 * scale, scale
);

// Draw glyphs
Expand Down

0 comments on commit d8b8fdd

Please sign in to comment.