renaming
This commit is contained in:
+5
-5
@@ -23,12 +23,12 @@ void Window::draw_display(int milliseconds) {
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds((int) (milliseconds))); // 1000 / fps; 200ms = 5fps
|
||||
}
|
||||
|
||||
void Window::update_display(Point* segments[]) {
|
||||
m_board[segments[0]->m_row][segments[0]->m_col] = segments[0];
|
||||
m_board[segments[2]->m_row][segments[2]->m_col] = segments[2];
|
||||
void Window::update_display(Point** buffer) {
|
||||
m_board[buffer[0]->m_row][buffer[0]->m_col] = buffer[0];
|
||||
m_board[buffer[2]->m_row][buffer[2]->m_col] = buffer[2];
|
||||
for(int i = 3; i < ROW * COL; i++) {
|
||||
if(segments[i] != nullptr) {
|
||||
m_board[segments[i]->m_row][segments[i]->m_col] = segments[i];
|
||||
if(buffer[i] != nullptr) {
|
||||
m_board[buffer[i]->m_row][buffer[i]->m_col] = buffer[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user