diff options
Diffstat (limited to 'apps/plugins/oscillograph.c')
-rw-r--r-- | apps/plugins/oscillograph.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/plugins/oscillograph.c b/apps/plugins/oscillograph.c index 50e18e5a9f..1512e11389 100644 --- a/apps/plugins/oscillograph.c +++ b/apps/plugins/oscillograph.c | |||
@@ -65,7 +65,6 @@ static int drawMode = DRAW_MODE_FILLED; | |||
65 | void cleanup(void *parameter) | 65 | void cleanup(void *parameter) |
66 | { | 66 | { |
67 | (void)parameter; | 67 | (void)parameter; |
68 | |||
69 | /* restore to default roll position. | 68 | /* restore to default roll position. |
70 | Looks funny if you forget to do this... */ | 69 | Looks funny if you forget to do this... */ |
71 | rb->lcd_roll(0); | 70 | rb->lcd_roll(0); |
@@ -91,13 +90,13 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
91 | int lastLeft = 0; | 90 | int lastLeft = 0; |
92 | int lastRight = 0; | 91 | int lastRight = 0; |
93 | int lasty = 0; | 92 | int lasty = 0; |
94 | 93 | ||
95 | bool exit = false; | 94 | bool exit = false; |
96 | 95 | ||
97 | TEST_PLUGIN_API(api); | 96 | TEST_PLUGIN_API(api); |
98 | (void)parameter; | 97 | (void)parameter; |
99 | rb = api; | 98 | rb = api; |
100 | 99 | ||
101 | /* the main loop */ | 100 | /* the main loop */ |
102 | while (!exit) { | 101 | while (!exit) { |
103 | 102 | ||
@@ -106,8 +105,10 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) | |||
106 | right = rb->mas_codec_readreg(0xD) / (MAX_PEAK / (LCD_WIDTH / 2 - 2)); | 105 | right = rb->mas_codec_readreg(0xD) / (MAX_PEAK / (LCD_WIDTH / 2 - 2)); |
107 | 106 | ||
108 | /* delete current line */ | 107 | /* delete current line */ |
109 | rb->lcd_clearline(0, y, LCD_WIDTH-1, y); | 108 | rb->lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); |
109 | rb->lcd_drawline(0, y, LCD_WIDTH-1, y); | ||
110 | 110 | ||
111 | rb->lcd_set_drawmode(DRMODE_SOLID); | ||
111 | switch (drawMode) { | 112 | switch (drawMode) { |
112 | case DRAW_MODE_FILLED: | 113 | case DRAW_MODE_FILLED: |
113 | rb->lcd_drawline(LCD_WIDTH / 2 + 1 , y, | 114 | rb->lcd_drawline(LCD_WIDTH / 2 + 1 , y, |