mirror of
https://github.com/kichikuou/system3-sdl2.git
synced 2026-10-05 05:17:58 +03:00
Imported SJIS -> Unicode converter from xsystem35
This commit is contained in:
@@ -5,6 +5,16 @@
|
||||
*/
|
||||
|
||||
#include "ags.h"
|
||||
#include "s2utbl.h"
|
||||
|
||||
inline uint16 sjis_to_unicode(uint16 code)
|
||||
{
|
||||
if (code >= 0xa0 && code <= 0xdf)
|
||||
return 0xff60 + code - 0xa0;
|
||||
if (code < 0x100)
|
||||
return code;
|
||||
return s2u[(code >> 8) - 0x80][(code & 0xff) - 0x40];
|
||||
}
|
||||
|
||||
void AGS::draw_text(char string[])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user