diff options
Diffstat (limited to 'Applications/HexEditor')
-rw-r--r-- | Applications/HexEditor/HexEditor.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Applications/HexEditor/HexEditor.cpp b/Applications/HexEditor/HexEditor.cpp index 31ac165966..e192cd7974 100644 --- a/Applications/HexEditor/HexEditor.cpp +++ b/Applications/HexEditor/HexEditor.cpp @@ -336,7 +336,7 @@ void HexEditor::scroll_position_into_view(int position) { int y = position / bytes_per_row(); int x = position % bytes_per_row(); - Gfx::Rect rect { + Gfx::IntRect rect { frame_thickness() + offset_margin_width() + (x * (character_width() * 3)) + 10, frame_thickness() + 5 + (y * line_height()), (character_width() * 3), @@ -490,7 +490,7 @@ void HexEditor::paint_event(GUI::PaintEvent& event) painter.translate(frame_thickness(), frame_thickness()); painter.translate(-horizontal_scrollbar().value(), -vertical_scrollbar().value()); - Gfx::Rect offset_clip_rect { + Gfx::IntRect offset_clip_rect { 0, vertical_scrollbar().value(), 85, @@ -510,7 +510,7 @@ void HexEditor::paint_event(GUI::PaintEvent& event) // paint offsets for (int i = min_row; i < max_row; i++) { - Gfx::Rect side_offset_rect { + Gfx::IntRect side_offset_rect { frame_thickness() + 5, frame_thickness() + 5 + (i * line_height()), width() - width_occupied_by_vertical_scrollbar(), @@ -548,7 +548,7 @@ void HexEditor::paint_event(GUI::PaintEvent& event) } } - Gfx::Rect hex_display_rect { + Gfx::IntRect hex_display_rect { frame_thickness() + offset_margin_width() + (j * (character_width() * 3)) + 10, frame_thickness() + 5 + (i * line_height()), (character_width() * 3), @@ -565,7 +565,7 @@ void HexEditor::paint_event(GUI::PaintEvent& event) auto line = String::format("%02X", m_buffer[byte_position]); painter.draw_text(hex_display_rect, line, Gfx::TextAlignment::TopLeft, text_color); - Gfx::Rect text_display_rect { + Gfx::IntRect text_display_rect { frame_thickness() + offset_margin_width() + (bytes_per_row() * (character_width() * 3)) + (j * character_width()) + 20, frame_thickness() + 5 + (i * line_height()), character_width(), |