Explorar o código

Add buffer_copy

Dan ELKOUBY %!s(int64=11) %!d(string=hai) anos
pai
achega
0d20a1a4b2
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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;