Dan ELKOUBY 11 anni fa
parent
commit
0d20a1a4b2
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      src/graphics.c

+ 5 - 0
src/graphics.c

@@ -51,6 +51,11 @@ void buffer_swap()
 	*lcd_base = (unsigned) buffer_front;
 }
 
+void buffer_copy()
+{
+	memcpy(buffer_front, buffer_back, BUFFER_SIZE);
+}
+
 void buffer_fill(unsigned color)
 {
 	unsigned *buffer_back_32 = buffer_back;