From 599e1b633fcade0e0089a31e5c7218ae720254c9 Mon Sep 17 00:00:00 2001 From: Sambas Date: Sat, 26 May 2012 21:54:46 +0300 Subject: [PATCH] graphic bugfixes --- flight/Modules/Osd/osdgen/osdgen.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/flight/Modules/Osd/osdgen/osdgen.c b/flight/Modules/Osd/osdgen/osdgen.c index cb850bb9e..34ce22176 100644 --- a/flight/Modules/Osd/osdgen/osdgen.c +++ b/flight/Modules/Osd/osdgen/osdgen.c @@ -2202,10 +2202,9 @@ void updateGraphics() { } break; default: - write_vline( draw_buffer_level,0,0,GRAPHICS_HEIGHT_REAL-1,1); - write_vline( draw_buffer_mask,0,0,GRAPHICS_HEIGHT_REAL-1,1); - write_vline( draw_buffer_level,16,0,GRAPHICS_HEIGHT_REAL-1,1); - write_vline( draw_buffer_mask,16,0,GRAPHICS_HEIGHT_REAL-1,1); + write_vline_lm( APPLY_HDEADBAND(GRAPHICS_RIGHT/2),APPLY_VDEADBAND(0),APPLY_VDEADBAND(GRAPHICS_BOTTOM),1,1); + write_hline_lm( APPLY_HDEADBAND(0),APPLY_HDEADBAND(GRAPHICS_RIGHT),APPLY_VDEADBAND(GRAPHICS_BOTTOM/2),1,1); + break; } // Must mask out last half-word because SPI keeps clocking it out otherwise