mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Disable bidirectional text handling and arabic joining in the bootloaders in order to save space. * Disable greyblitting in archos bootloaders for the same reason.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18584 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
17a798400b
commit
15d996a023
2 changed files with 19 additions and 5 deletions
|
@ -43,6 +43,7 @@
|
||||||
#define _isnewline(c) ((c=='\n' || c=='\r') ? 1 : 0)
|
#define _isnewline(c) ((c=='\n' || c=='\r') ? 1 : 0)
|
||||||
#define XOR(a,b) ((a||b) && !(a&&b))
|
#define XOR(a,b) ((a||b) && !(a&&b))
|
||||||
|
|
||||||
|
#ifndef BOOTLOADER
|
||||||
static const arab_t * arab_lookup(unsigned short uchar)
|
static const arab_t * arab_lookup(unsigned short uchar)
|
||||||
{
|
{
|
||||||
if (uchar >= 0x621 && uchar <= 0x63a)
|
if (uchar >= 0x621 && uchar <= 0x63a)
|
||||||
|
@ -132,14 +133,18 @@ static void arabjoin(unsigned short * stringprt, int length)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif /* !BOOTLOADER */
|
||||||
|
|
||||||
unsigned short *bidi_l2v(const unsigned char *str, int orientation)
|
unsigned short *bidi_l2v(const unsigned char *str, int orientation)
|
||||||
{
|
{
|
||||||
int length = utf8length(str);
|
|
||||||
static unsigned short utf16_buf[SCROLL_LINE_SIZE];
|
static unsigned short utf16_buf[SCROLL_LINE_SIZE];
|
||||||
|
unsigned short *target, *tmp;
|
||||||
|
#ifndef BOOTLOADER
|
||||||
static unsigned short bidi_buf[SCROLL_LINE_SIZE];
|
static unsigned short bidi_buf[SCROLL_LINE_SIZE];
|
||||||
unsigned short *heb_str, *target, *tmp; /* *broken_str */
|
unsigned short *heb_str; /* *broken_str */
|
||||||
int block_start, block_end, block_type, block_length, i;
|
int block_start, block_end, block_type, block_length, i;
|
||||||
|
int length = utf8length(str);
|
||||||
|
#endif
|
||||||
/*
|
/*
|
||||||
long max_chars=0;
|
long max_chars=0;
|
||||||
int begin, end, char_count, orig_begin;
|
int begin, end, char_count, orig_begin;
|
||||||
|
@ -151,6 +156,11 @@ unsigned short *bidi_l2v(const unsigned char *str, int orientation)
|
||||||
str = utf8decode(str, target++);
|
str = utf8decode(str, target++);
|
||||||
*target = 0;
|
*target = 0;
|
||||||
|
|
||||||
|
#ifdef BOOTLOADER
|
||||||
|
(void)orientation;
|
||||||
|
return utf16_buf;
|
||||||
|
|
||||||
|
#else /* !BOOTLOADER */
|
||||||
if (target == utf16_buf) /* empty string */
|
if (target == utf16_buf) /* empty string */
|
||||||
return target;
|
return target;
|
||||||
|
|
||||||
|
@ -282,5 +292,6 @@ unsigned short *bidi_l2v(const unsigned char *str, int orientation)
|
||||||
return broken_str;
|
return broken_str;
|
||||||
#endif
|
#endif
|
||||||
return heb_str;
|
return heb_str;
|
||||||
|
#endif /* !BOOTLOADER */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -203,7 +203,7 @@ _lcd_write_data:
|
||||||
/* This is the place to reenable the interrupts, if we have disabled
|
/* This is the place to reenable the interrupts, if we have disabled
|
||||||
* them. See above. */
|
* them. See above. */
|
||||||
|
|
||||||
|
#ifndef BOOTLOADER
|
||||||
.align 2
|
.align 2
|
||||||
.global _lcd_grey_data
|
.global _lcd_grey_data
|
||||||
.type _lcd_grey_data,@function
|
.type _lcd_grey_data,@function
|
||||||
|
@ -345,7 +345,10 @@ _lcd_grey_data:
|
||||||
.short 0x0080
|
.short 0x0080
|
||||||
|
|
||||||
.align 2
|
.align 2
|
||||||
.lcdr:
|
|
||||||
.long LCDR
|
|
||||||
.pmask:
|
.pmask:
|
||||||
.long 0x80808080
|
.long 0x80808080
|
||||||
|
#endif
|
||||||
|
|
||||||
|
.align 2
|
||||||
|
.lcdr:
|
||||||
|
.long LCDR
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue