This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9595 - Correct thai font display
Attached to Project:
Rockbox
Opened by Phinitnun Chanasabaeng (crackerizer) - Monday, 01 December 2008, 16:47 GMT+2
Opened by Phinitnun Chanasabaeng (crackerizer) - Monday, 01 December 2008, 16:47 GMT+2
|
DetailsThis patch will correct how thai vowels and tonal makers display.
|
This task depends upon
+ if(*ucs == 0xe47 || *ucs == 0xe48 || *ucs == 0xe49 || *ucs == 0xe4a ||
+ *ucs == 0xe4b || *ucs == 0xe4c || *ucs == 0xe4d || *ucs == 0xe4e)
should become
if(*ucs >= 0xe47 && *ucs <= 0xe4e)
http://forums.overclockzone.com/forums/showthread.php?t=357442
a) Rockbox is C89 - no mixing code with variable declarations.
b) This patch seems prone to bitrot, since you have the same code in 3 places. Would it be possible to centralise it?
About the C89, as I'm not a programmer by nature, I don't know much about it. But I would look at it to standardize myself.
Thank you for your suggestion. :)