rename draw_text() to draw_buffer()
This commit is contained in:
parent
b9d7e1f93e
commit
7e518cd27a
@ -369,7 +369,7 @@ std::pair<int, PieceTable::Cursor> Window::calculate_start_position()
|
|||||||
return std::pair<int, PieceTable::Cursor>(row, cursor);
|
return std::pair<int, PieceTable::Cursor>(row, cursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Window::draw_text()
|
void Window::draw_buffer()
|
||||||
{
|
{
|
||||||
auto start_position = calculate_start_position();
|
auto start_position = calculate_start_position();
|
||||||
int row = start_position.first;
|
int row = start_position.first;
|
||||||
@ -463,7 +463,7 @@ void Window::redraw()
|
|||||||
{
|
{
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
|
|
||||||
draw_text();
|
draw_buffer();
|
||||||
draw_status_bar();
|
draw_status_bar();
|
||||||
|
|
||||||
SDL_GL_SwapWindow(m_window);
|
SDL_GL_SwapWindow(m_window);
|
||||||
|
@ -36,7 +36,7 @@ protected:
|
|||||||
void handle_key(uint32_t scancode, uint32_t mod);
|
void handle_key(uint32_t scancode, uint32_t mod);
|
||||||
void cursor_move(int which);
|
void cursor_move(int which);
|
||||||
std::pair<int, PieceTable::Cursor> calculate_start_position();
|
std::pair<int, PieceTable::Cursor> calculate_start_position();
|
||||||
void draw_text();
|
void draw_buffer();
|
||||||
void draw_buffer_character(int screen_column, int screen_row, uint32_t character);
|
void draw_buffer_character(int screen_column, int screen_row, uint32_t character);
|
||||||
void draw_character(int x, int y, uint32_t character);
|
void draw_character(int x, int y, uint32_t character);
|
||||||
void update_cursor_row(int cursor_row);
|
void update_cursor_row(int cursor_row);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user