This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9521 - Simulator: 2 colors LCD screen for the Clip target (with a monochrome controller)
Attached to Project:
Rockbox
Opened by Rafaël Carré (funman) - Saturday, 01 November 2008, 02:00 GMT+2
Last edited by Rafaël Carré (funman) - Friday, 05 December 2008, 00:25 GMT+2
Opened by Rafaël Carré (funman) - Saturday, 01 November 2008, 02:00 GMT+2
Last edited by Rafaël Carré (funman) - Friday, 05 December 2008, 00:25 GMT+2
|
DetailsThis patch adds the ability for the simulator to draw the top X (configurable) lines in a different color.
I add an extra argument to sdl_set_gradient() which is the extra color, which will get added to the end of the palette. sdl_gui_update() then checks each pixel of the specified zone, and sets them to the extra color if they are set. This approach only works for monochrome, since there is no obvious reason to have a screen with different color zones on a colored display. Please comment if you think this is not the right approach. |
This task depends upon
Closed by Rafaël Carré (funman)
Friday, 05 December 2008, 00:25 GMT+2
Reason for closing: Accepted
Additional comments about closing: r19347
Friday, 05 December 2008, 00:25 GMT+2
Reason for closing: Accepted
Additional comments about closing: r19347
sdl_gui_update() will copy the full screen content at each call.
Some performance enhancements could be made if required,
The load is ~7% in demistify plugin on a 1.7GHz CPU.
TODO: greylib simulation since it doesn't seem to use sdl_gui_update() ; could be skipped since greylib is not proved to function on this screen.
Comments (bad and good) welcome :)
Only call lcd_set_gradient() on the real_surface (the other one won't be displayed and serves only as a framebuffer)
IMO it's ok to commit, but I'd like comments.