diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2008-01-13 18:39:09 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2008-01-13 18:39:09 +0000 |
| commit | fa7eb56c84f2e338ed5ff62dfb79e6bf513ddcdb (patch) | |
| tree | acbb1d90194a63e32fff0baade56c6985ba12ac5 /apps/plugins/lib/grey_parm.c | |
| parent | 071c2ac339b4b10610f083b9d0ca253d99d3efb2 (diff) | |
| download | rockbox-fa7eb56c84f2e338ed5ff62dfb79e6bf513ddcdb.zip rockbox-fa7eb56c84f2e338ed5ff62dfb79e6bf513ddcdb.tar.gz rockbox-fa7eb56c84f2e338ed5ff62dfb79e6bf513ddcdb.tar.bz2 rockbox-fa7eb56c84f2e338ed5ff62dfb79e6bf513ddcdb.tar.xz | |
Greyscale library: * Defer application of lcd linearisation + gamma in buffered mode to the actual update. This simplifies the update function (grey_update() and grey_update_rect() now are just calls to grey_ub_gray_bitmap_part()), and makes DRMODE_COMPLEMENT work properly. * Make the simulator version work and behave more similar to the target version.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16080 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/grey_parm.c')
| -rw-r--r-- | apps/plugins/lib/grey_parm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/lib/grey_parm.c b/apps/plugins/lib/grey_parm.c index e2accee..63d09df 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) if (_grey_info.flags & _GREY_RUNNING) { #ifdef SIMULATOR + _grey_info.rb->sim_lcd_ex_update_rect(_grey_info.x, _grey_info.y, + _grey_info.width, + _grey_info.height); grey_deferred_lcd_update(); - grey_update(); #else _grey_info.flags |= _GREY_DEFERRED_UPDATE; #endif @@ -72,7 +74,6 @@ int grey_get_drawmode(void) /* Set the foreground shade for subsequent drawing operations */ void grey_set_foreground(unsigned brightness) { - _grey_info.fg_val = _grey_info.gvalue[brightness]; _grey_info.fg_brightness = brightness; } @@ -85,7 +86,6 @@ unsigned grey_get_foreground(void) /* Set the background shade for subsequent drawing operations */ void grey_set_background(unsigned brightness) { - _grey_info.bg_val = _grey_info.gvalue[brightness]; _grey_info.bg_brightness = brightness; } |