Skip to content

Commit

Permalink
Update width/height/stride when clearing
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiegel committed May 13, 2024
1 parent 9c16965 commit f8732b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions garglk/garglk.h
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ class Canvas {
void clear() {
m_pixels.clear();
m_pixels.shrink_to_fit();
m_width = 0;
m_height = 0;
m_stride = 0;
}

private:
Expand Down

0 comments on commit f8732b6

Please sign in to comment.