rename draw_text() to draw_buffer()

This commit is contained in:
Josh Holtrop 2016-09-13 22:55:48 -04:00
parent b9d7e1f93e
commit 7e518cd27a
2 changed files with 3 additions and 3 deletions

View File

@ -369,7 +369,7 @@ std::pair<int, PieceTable::Cursor> Window::calculate_start_position()
return std::pair<int, PieceTable::Cursor>(row, cursor);
}
void Window::draw_text()
void Window::draw_buffer()
{
auto start_position = calculate_start_position();
int row = start_position.first;
@ -463,7 +463,7 @@ void Window::redraw()
{
glClear(GL_COLOR_BUFFER_BIT);
draw_text();
draw_buffer();
draw_status_bar();
SDL_GL_SwapWindow(m_window);

View File

@ -36,7 +36,7 @@ protected:
void handle_key(uint32_t scancode, uint32_t mod);
void cursor_move(int which);
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_character(int x, int y, uint32_t character);
void update_cursor_row(int cursor_row);