1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:27:45 +00:00

HexEditor: Paint byte characters with correct width

This commit is contained in:
Sam Atkins 2024-02-02 16:36:30 +00:00 committed by Sam Atkins
parent e2f927a7a7
commit f57d9789f8

View file

@ -636,7 +636,7 @@ void HexEditor::paint_event(GUI::PaintEvent& event)
Gfx::IntRect hex_display_rect_high_nibble {
frame_thickness() + offset_margin_width() + column * cell_width() + 2 * m_padding,
frame_thickness() + m_padding + row * line_height(),
cell_width() / 2,
character_width(),
line_height() - m_line_spacing
};