remove Window::scroll_{up,down}()
This commit is contained in:
parent
a68ccb52e4
commit
7784024af1
@ -272,26 +272,6 @@ void Window::cursor_down()
|
|||||||
redraw();
|
redraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::scroll_down()
|
|
||||||
{
|
|
||||||
if ((m_start_piece != m_buffer->piece_table->end_piece) &&
|
|
||||||
(m_start_piece->next != m_buffer->piece_table->end_piece))
|
|
||||||
{
|
|
||||||
m_start_piece = m_start_piece->next;
|
|
||||||
redraw();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void Window::scroll_up()
|
|
||||||
{
|
|
||||||
if ((m_start_piece != m_buffer->piece_table->start_piece) &&
|
|
||||||
(m_start_piece->prev != m_buffer->piece_table->start_piece))
|
|
||||||
{
|
|
||||||
m_start_piece = m_start_piece->prev;
|
|
||||||
redraw();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
std::pair<int, PieceTable::Cursor> Window::calculate_start_position()
|
std::pair<int, PieceTable::Cursor> Window::calculate_start_position()
|
||||||
{
|
{
|
||||||
m_cursor_row = std::min(m_cursor_row, m_rows - 1);
|
m_cursor_row = std::min(m_cursor_row, m_rows - 1);
|
||||||
|
@ -25,8 +25,6 @@ protected:
|
|||||||
void cursor_right();
|
void cursor_right();
|
||||||
void cursor_up();
|
void cursor_up();
|
||||||
void cursor_down();
|
void cursor_down();
|
||||||
void scroll_down();
|
|
||||||
void scroll_up();
|
|
||||||
std::pair<int, PieceTable::Cursor> calculate_start_position();
|
std::pair<int, PieceTable::Cursor> calculate_start_position();
|
||||||
void draw_text();
|
void draw_text();
|
||||||
void draw_character(int screen_column, int screen_row, uint32_t character);
|
void draw_character(int screen_column, int screen_row, uint32_t character);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user