From 47780cdc604534a0cc6df04d5e2b728b2d91818d Mon Sep 17 00:00:00 2001
From: Jon Langseth <jon.langseth@lilug.no>
Date: Fri, 5 Jul 2013 12:13:50 +0200
Subject: [PATCH] Demo updated to use new clear_screen()

---
 fbosd.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/fbosd.c b/fbosd.c
index 3fe1991..099e02f 100644
--- a/fbosd.c
+++ b/fbosd.c
@@ -127,7 +127,7 @@ int main(void)
 	screen_buffer = (uint8_t*) malloc( hres_bytes * VRES * sizeof(uint8_t) );
 	// And make sure it's cleared
 	fill(c_BLACK);
-
+	
 	/* LM1881 pins are connected to:
 	INT0 / PCINT18 / PD2 <- VSYNC
 	INT1 / PCINT19 / PD3 <- CSYNC
@@ -145,9 +145,7 @@ int main(void)
 
 	for (;;)
 	{
-		fill(c_BLACK);
 		Delay_ms(100);
-		
 		draw_string( 2, 2,  "!\"#$%&'()*+-./");
 		draw_string( 2, 10, "01234567890");
 		draw_string( 2, 18, ":;<=>?@");
@@ -164,7 +162,7 @@ int main(void)
 		draw_char( 40, 80, 130);
 
 		Delay_ms(500);
-		fill(c_BLACK);
+		clear_screen();
 
 		// Do some static drawing :P
 		set_pixel(28, 8, 1);
@@ -211,7 +209,7 @@ int main(void)
 
 		}
 		Delay_ms(250);
-		fill(c_BLACK);
+		clear_screen();
 		
 		int8_t hp = 10;
 		int8_t vp = 10;
@@ -227,8 +225,10 @@ int main(void)
 
 			pgm_draw_8bpp_bitmap(hp, vp, testimage_width, testimage_height, testimage);
 			Delay_ms(10);
-			fill_rect(hp, vp, testimage_width, testimage_height, 0);
+			//fill_rect(hp, vp, testimage_width, testimage_height, 0);
+			clear_screen();
 		}
+		clear_screen();
 		
 	}
 }
-- 
2.39.2