Ver código fonte

Add buffer_copy

Dan ELKOUBY 11 anos atrás
pai
commit
0d20a1a4b2
1 arquivos alterados com 5 adições e 0 exclusões
  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;