forked from len0rd/rockbox
Add a wrapper header, mylcd.h, in the lib subdirectory, which lets plugins' code automatically call the proper functions depending if compilation is for greylib or color display, also forms proper call to grey_ and xlcd_. mylcd_ub_ call greylib unbuffered routines, regular lcd routines otherwise. Form is mylcd_<fnname>, <fnname> is the symbol name stripped of prefixes lcd_, grey_, or xlcd_. Convert a couple plugins I know well (easy job).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26542 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e174a8ad8d
commit
bc26fe7a96
7 changed files with 278 additions and 156 deletions
|
@ -80,10 +80,10 @@ static void draw_fps(struct video_thread_data *td)
|
|||
td->info->display_picture->temporal_reference,
|
||||
/* Audio information */
|
||||
buf_pct, pcm_underruns, pcm_skipped);
|
||||
lcd_(putsxy)(0, 0, str);
|
||||
mylcd_putsxy(0, 0, str);
|
||||
|
||||
vo_lock();
|
||||
lcd_(update_rect)(0, 0, LCD_WIDTH, 8);
|
||||
mylcd_update_rect(0, 0, LCD_WIDTH, 8);
|
||||
vo_unlock();
|
||||
|
||||
td->last_showfps = *rb->current_tick;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue