summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/grey_parm.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lib/grey_parm.c')
-rw-r--r--apps/plugins/lib/grey_parm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/lib/grey_parm.c b/apps/plugins/lib/grey_parm.c
index e2accee518..63d09dfd72 100644
--- a/apps/plugins/lib/grey_parm.c
+++ b/apps/plugins/lib/grey_parm.c
@@ -49,8 +49,10 @@ void grey_set_position(int x, int y)
49 if (_grey_info.flags & _GREY_RUNNING) 49 if (_grey_info.flags & _GREY_RUNNING)
50 { 50 {
51#ifdef SIMULATOR 51#ifdef SIMULATOR
52 _grey_info.rb->sim_lcd_ex_update_rect(_grey_info.x, _grey_info.y,
53 _grey_info.width,
54 _grey_info.height);
52 grey_deferred_lcd_update(); 55 grey_deferred_lcd_update();
53 grey_update();
54#else 56#else
55 _grey_info.flags |= _GREY_DEFERRED_UPDATE; 57 _grey_info.flags |= _GREY_DEFERRED_UPDATE;
56#endif 58#endif
@@ -72,7 +74,6 @@ int grey_get_drawmode(void)
72/* Set the foreground shade for subsequent drawing operations */ 74/* Set the foreground shade for subsequent drawing operations */
73void grey_set_foreground(unsigned brightness) 75void grey_set_foreground(unsigned brightness)
74{ 76{
75 _grey_info.fg_val = _grey_info.gvalue[brightness];
76 _grey_info.fg_brightness = brightness; 77 _grey_info.fg_brightness = brightness;
77} 78}
78 79
@@ -85,7 +86,6 @@ unsigned grey_get_foreground(void)
85/* Set the background shade for subsequent drawing operations */ 86/* Set the background shade for subsequent drawing operations */
86void grey_set_background(unsigned brightness) 87void grey_set_background(unsigned brightness)
87{ 88{
88 _grey_info.bg_val = _grey_info.gvalue[brightness];
89 _grey_info.bg_brightness = brightness; 89 _grey_info.bg_brightness = brightness;
90} 90}
91 91