You can see the CHDK offset and the 'odd' flashing.
@pigeonhill
Not sure about the flashing; but the console position is not offset - it's just that the HDMI buffer is taller (270 vs 240) so there is more space below it.
The <ALT> message is always anchored to the bottom of the screen; but the console position is set by the top left corner.
Attached is a new version to test.
The main change is the addition of a new Lua script function screen_needs_refresh() - if this returns true then the CHDK screen has been cleared and you should redraw your display.
After detecting screen_needs_refresh returning true be careful what you call. If anything you call triggers a CHDK UI refresh then this will set screen_refresh_true again and your code will spend a lot of time redrawing - it will likely flicker like crazy.For example:- do not call draw.redraw, use draw.overdraw instead. draw.redraw clears the CHDK UI and will trigger a screen_needs_refresh being set again
- if you want to refresh the console call console_redraw(1) to prevent the console from also triggering screen_needs_refresh being set again.
This screen_needs_refresh() function is just an idea I am playing with and it may change - I'm sure reyalp will have a better method to do this
The histogram size should also be correct now.
The EVf size has also been changed to 360x270.
Phil.