| ofs | hex dump | ascii |
|---|
| 0000 | ff d8 ff e0 00 10 4a 46 49 46 00 01 01 01 00 48 00 48 00 00 ff db 00 43 00 08 06 06 07 06 05 08 | ......JFIF.....H.H.....C........ |
| 0020 | 07 07 07 09 09 08 0a 0c 14 0d 0c 0b 0b 0c 19 12 13 0f 14 1d 1a 1f 1e 1d 1a 1c 1c 20 24 2e 27 20 | ............................$.'. |
| 0040 | 22 2c 23 1c 1c 28 37 29 2c 30 31 34 34 34 1f 27 39 3d 38 32 3c 2e 33 34 32 ff db 00 43 01 09 09 | ",#..(7),01444.'9=82<.342...C... |
| 0060 | 09 0c 0b 0c 18 0d 0d 18 32 21 1c 21 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 | ........2!.!22222222222222222222 |
| 0080 | 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 32 ff c0 | 222222222222222222222222222222.. |
| 00a0 | 00 11 08 00 5c 01 2c 03 01 22 00 02 11 01 03 11 01 ff c4 00 1c 00 00 01 05 01 01 01 00 00 00 00 | ....\.,.."...................... |
| 00c0 | 00 00 00 00 00 00 06 00 03 05 07 08 04 01 02 ff c4 00 55 10 00 01 03 03 02 03 02 08 0a 05 06 09 | ..................U............. |
| 00e0 | 0d 01 00 00 01 02 03 04 00 05 11 06 12 07 21 31 13 41 14 22 32 51 61 71 81 94 15 17 18 37 55 56 | ..............!1.A."2/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/
* $Id$
*
* Copyright (C) 2007 Copyright Kévin Ferrare
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
****************************************************************************/
#include "clock.h"
#include "clock_bitmap_strings.h"
void draw_string(struct screen* display, const struct picture* bitmaps,
char* str, int x, int y){
int i, bitmap_pos;
char c;
for(i=0;(c=str[i]);i++){
bitmap_pos=-1;
if(c>='0'&&c<='9')
bitmap_pos=c-'0';
else if(c==':')
bitmap_pos=10;
else if(c=='A' || c=='/')/* 'AM' in digits, '/' in smalldigits */
bitmap_pos=11;
else if(c=='P' || c=='.')/* 'PM' in digits, '.' in smalldigits */
bitmap_pos=12;
if(bitmap_pos>=0)
vertical_picture_draw_sprite(display, bitmaps, bitmap_pos,
x+i*bitmaps->width, y);
}
}
void getstringsize(const struct picture* bitmaps, char* str, int *w, int *h ){
*h=bitmaps->slide_height;
*w=rb->strlen(str)*bitmaps->width;
}
|