summaryrefslogtreecommitdiff
path: root/apps/codecs/libspeex/Makefile
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-03-24 00:35:53 +0000
committerJens Arnold <amiconn@rockbox.org>2008-03-24 00:35:53 +0000
commit68a21689aef3a81335456476d4d10860ef5bc6b3 (patch)
treea57b6c31e4edd13e178da276344d33b172796456 /apps/codecs/libspeex/Makefile
parent99c0978faa94b0e2fabe5d06000a10c8d48e7a0c (diff)
downloadrockbox-68a21689aef3a81335456476d4d10860ef5bc6b3.zip
rockbox-68a21689aef3a81335456476d4d10860ef5bc6b3.tar.gz
rockbox-68a21689aef3a81335456476d4d10860ef5bc6b3.tar.bz2
rockbox-68a21689aef3a81335456476d4d10860ef5bc6b3.tar.xz
Consistent naming scheme the various blit functions. * Removed lcd_blit_mono() for colour targets. Plugin API became incompatible, so sort, clean up & bump. * Implemented lcd_blit_mono() for M3.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16775 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libspeex/Makefile')
0 files changed, 0 insertions, 0 deletions
n class="hl opt">[]={binary,digits,segments}; static void print_binary(char* buffer, int number, int nb_bits){ int i; int mask=1; buffer[nb_bits]='\0'; for(i=0; i<nb_bits; i++){ if((number & mask) !=0) buffer[nb_bits-i-1]='1'; else buffer[nb_bits-i-1]='0'; mask=mask<<1; } } void binary_clock_draw(struct screen* display, struct time* time, int skin){ int lines_values[]={ time->hour,time->minute,time->second }; char buffer[9]; int i; const struct picture* binary_bitmaps = &(binary_skin[skin][display->screen_type]); int y_offset=(display->getheight()-(binary_bitmaps->slide_height*3))/2; int x_offset=(display->getwidth()-(binary_bitmaps->width*6))/2; for(i=0;i<3;i++){ print_binary(buffer, lines_values[i], 6); draw_string(display, binary_bitmaps, buffer, x_offset, binary_bitmaps->slide_height*i+y_offset); } }