From daa7bf87917a165f92b39bd49101f7bc97d1bec8 Mon Sep 17 00:00:00 2001 From: ANSI TV Admin Date: Wed, 11 Nov 2026 12:04:09 -0800 Subject: [PATCH 06/24] SyncTERM: GPU Accelerated setting, Pointy as OpenGL shaders, Menu Font MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It adds a **GPU Accelerated** row to Program Settings: with it on, the terminal forces the SDL/OpenGL renderer and scaling stops being a per-frame CPU rescale, which is what fixes dropped frames while zoomed. The important part is Pointy. SyncTERM's Pointy is not nearest-neighbour — it is the neighbourhood-aware pipeline in `src/conio/scale.c` (`pointy_scale_odd/3/5` corner fills, xBR 2x/4x, then YCoCg interpolation to the target size). Any plain renderer stretch loses that look. So the patch runs the *whole algorithm* as OpenGL shaders on integer textures, one draw call per pass, inside the SDL renderer's context with full GL state saved/restored: * the xBR rules in the shader are **generated from `xbr.c` itself** (`src/conio/gen-pointy-shader.py`), so CPU and GPU cannot drift apart; * `pointy_shader.h` (the baked shader) ships in the patch, so building needs no Python — regenerate only when `xbr.c` changes; * Blocky and External keep the renderer-stretch looks (crisp at whole zooms / smooth 2x detail texture); Pointy+GPU is the exact CPU Pointy output at every zoom, windowed or fullscreen; * enabling GPU takes effect on the next launch (title bar says `[Restart to enable GPU]` until then, `[GPU]` once live); missing OpenGL at run time gives a clear error box, not a silently wrong look. **Verification:** `src/conio/test-gpu-pointy.c` (run via `test-gpu-pointy.sh`, headless under Xvfb) proves the shader output equals the CPU `do_scale()` bit for bit — 80 pattern/size cases up to 1920x1080, 221 shrink cases, resize/fullscreen transitions, and SDL still rendering after the shader passes. The suite passes from the published patch applied to a clean tree, and `check-gpu-toggle.sh` asserts a staged binary carries the toggle and the shader. Menu Font: a Program Settings row that picks the typeface of the dialer and menus (built-in "SyncTERM Menu" and "Perfect DOS VGA" 8x16/8x14/8x8 fonts, MenuFont= in syncterm.ini). The C plumbing (allfonts.c slots 46/47, apply_menu_font(), theme refresh, Menu.applyMenuFont) is included here; the earlier published gpu-toggle.patch carried only its Wren side. --- src/conio/CMakeLists.txt | 1 + src/conio/GNUmakefile | 1 + src/conio/allfonts.c | 1542 ++++++++++++++++- src/conio/ciolib.h | 4 +- src/conio/gen-pointy-shader.py | 45 + src/conio/gpu_pointy.c | 340 ++++ src/conio/gpu_pointy.h | 12 + src/conio/pointy.frag | 54 + src/conio/pointy_shader.h | 283 +++ src/conio/sdl_con.c | 123 +- src/conio/sdlfuncs.c | 7 + src/conio/sdlfuncs.h | 9 + src/conio/test-gpu-pointy.c | 123 ++ src/conio/test-gpu-pointy.sh | 10 + src/conio/win32gdi.c | 70 +- src/syncterm/fonts.c | 16 + src/syncterm/fonts.h | 3 + src/syncterm/fonts/menufont.f14 | Bin 0 -> 3584 bytes src/syncterm/fonts/menufont.f16 | Bin 0 -> 4096 bytes src/syncterm/fonts/menufont.f8 | Bin 0 -> 2048 bytes src/syncterm/fonts/perfdos.f14 | Bin 0 -> 3584 bytes src/syncterm/fonts/perfdos.f16 | Bin 0 -> 4096 bytes src/syncterm/fonts/perfdos.f8 | Bin 0 -> 2048 bytes src/syncterm/menu_settings.c | 21 +- src/syncterm/scripts/auto/menu/main_menu.wren | 3 + src/syncterm/scripts/menu_settings_ui.wren | 48 +- src/syncterm/scripts/syncterm_menu.wren | 7 + src/syncterm/syncterm.c | 37 +- src/syncterm/syncterm.h | 2 + src/syncterm/term.c | 6 +- src/syncterm/theme.c | 9 + src/syncterm/theme.h | 1 + src/syncterm/wren_bind.c | 13 +- src/syncterm/wren_bind_menu.c | 14 +- src/syncterm/wren_bind_menu_settings.c | 4 + src/syncterm/wren_menu_host.c | 9 +- 36 files changed, 2777 insertions(+), 40 deletions(-) create mode 100644 src/conio/gen-pointy-shader.py create mode 100644 src/conio/gpu_pointy.c create mode 100644 src/conio/gpu_pointy.h create mode 100644 src/conio/pointy.frag create mode 100644 src/conio/pointy_shader.h create mode 100644 src/conio/test-gpu-pointy.c create mode 100644 src/conio/test-gpu-pointy.sh create mode 100644 src/syncterm/fonts/menufont.f14 create mode 100644 src/syncterm/fonts/menufont.f16 create mode 100644 src/syncterm/fonts/menufont.f8 create mode 100644 src/syncterm/fonts/perfdos.f14 create mode 100644 src/syncterm/fonts/perfdos.f16 create mode 100644 src/syncterm/fonts/perfdos.f8 diff --git a/src/conio/CMakeLists.txt b/src/conio/CMakeLists.txt index 34c98f11..2621d091 100644 --- a/src/conio/CMakeLists.txt +++ b/src/conio/CMakeLists.txt @@ -146,6 +146,7 @@ if(NOT WITHOUT_SDL) if(SDL2_FOUND) list(APPEND SOURCE sdl_con.c) list(APPEND SOURCE sdlfuncs.c) + list(APPEND SOURCE gpu_pointy.c) if(WIN32) list(APPEND SOURCE SDL_win32_main.c) endif() diff --git a/src/conio/GNUmakefile b/src/conio/GNUmakefile index 5fb4b694..027d1176 100644 --- a/src/conio/GNUmakefile +++ b/src/conio/GNUmakefile @@ -45,6 +45,7 @@ ifdef WITH_SDL NEED_KEY_EVENTS := 1 OBJS += $(MTOBJODIR)$(DIRSEP)sdl_con$(OFILE) OBJS += $(MTOBJODIR)$(DIRSEP)sdlfuncs$(OFILE) + OBJS += $(MTOBJODIR)$(DIRSEP)gpu_pointy$(OFILE) endif ifdef WITH_RETRO diff --git a/src/conio/allfonts.c b/src/conio/allfonts.c index 71279693..10d331d1 100644 --- a/src/conio/allfonts.c +++ b/src/conio/allfonts.c @@ -50,6 +50,8 @@ CIOLIBEXPORT struct conio_font_data_struct conio_fontdata[257] = { {NULL, NULL, NULL, NULL, "Prestel", CIOLIB_PRESTEL, false}, {NULL, NULL, NULL, NULL, "Atari ST", CIOLIB_ATARIST, false}, {NULL, NULL, NULL, NULL, "RIPterm", CIOLIB_CP437, false}, + {NULL, NULL, NULL, NULL, "Perfect DOS VGA", CIOLIB_CP437, true}, + {NULL, NULL, NULL, NULL, "SyncTERM Menu", CIOLIB_CP437, true}, }; #else CIOLIBEXPORT struct conio_font_data_struct conio_fontdata[257] = { @@ -25413,8 +25415,1544 @@ CIOLIBEXPORT struct conio_font_data_struct conio_fontdata[257] = { "\x00\x00\x3c\x3c\x3c\x3c\x00\x00" "\x00\x00\x00\x00\x00\x00\x00\x00" , NULL, "RIPterm", CIOLIB_CP437, false} - ,{NULL, NULL, NULL, NULL, NULL, CIOLIB_CP437, false} - ,{NULL, NULL, NULL, NULL, NULL, CIOLIB_CP437, false} + ,{"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x7e\x81\xa5\x81\x81\xbd\x99\x81\x7e\x00\x00\x00\x00" + "\x00\x00\x00\x7e\xff\xdb\xff\xff\xc3\xe7\xff\x7e\x00\x00\x00\x00" + "\x00\x00\x00\x00\x6c\xfe\xfe\xfe\xfe\x7c\x38\x10\x00\x00\x00\x00" + "\x00\x00\x00\x00\x10\x38\x7c\xfe\x7c\x38\x10\x00\x00\x00\x00\x00" + "\x00\x00\x00\x18\x3c\x3c\xe7\xe7\xe7\x18\x18\x7e\x00\x00\x00\x00" + "\x00\x00\x00\x18\x3c\x7e\xff\xff\x7e\x18\x18\x7e\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x18\x3c\x3c\x18\x00\x00\x00\x00\x00\x00" + "\x00\x00\xff\xff\xff\xff\xe7\xc3\xc3\xe7\xff\xff\xff\xff\x00\x00" + "\x00\x00\x00\x00\x00\x3c\x66\x42\x42\x66\x3c\x00\x00\x00\x00\x00" + "\x00\x00\xff\xff\xff\xc3\x99\xbd\xbd\x99\xc3\xff\xff\xff\x00\x00" + "\x00\x00\x00\x3e\x0e\x1a\x32\x78\xcc\xcc\xcc\x78\x00\x00\x00\x00" + "\x00\x00\x00\x3c\x66\x66\x66\x3c\x18\x7e\x18\x18\x00\x00\x00\x00" + "\x00\x00\x00\x3f\x33\x3f\x30\x30\x30\x70\xf0\xe0\x00\x00\x00\x00" + "\x00\x00\x00\x7f\x63\x7f\x63\x63\x63\x67\xe7\xe6\xc0\x00\x00\x00" + "\x00\x00\x00\x18\x18\xdb\x3c\xe7\x3c\xdb\x18\x18\x00\x00\x00\x00" + "\x00\x00\x00\x80\xc0\xe0\xf8\xfe\xf8\xe0\xc0\x80\x00\x00\x00\x00" + "\x00\x00\x00\x02\x06\x0e\x3e\xfe\x3e\x0e\x06\x02\x00\x00\x00\x00" + "\x00\x00\x00\x18\x3c\x7e\x18\x18\x18\x7e\x3c\x18\x00\x00\x00\x00" + "\x00\x00\x00\x66\x66\x66\x66\x66\x66\x00\x66\x66\x00\x00\x00\x00" + "\x00\x00\x00\x7f\xdb\xdb\xdb\x7b\x1b\x1b\x1b\x1b\x00\x00\x00\x00" + "\x00\x00\x00\x7c\xc6\x60\x38\x6c\xc6\x6c\x38\x0c\xc6\x7c\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfe\xfe\xfe\x00\x00\x00\x00" + "\x00\x00\x00\x18\x3c\x7e\x18\x18\x18\x7e\x3c\x18\x7e\x00\x00\x00" + "\x00\x00\x00\x18\x3c\x7e\x18\x18\x18\x18\x18\x18\x00\x00\x00\x00" + "\x00\x00\x00\x18\x18\x18\x18\x18\x18\x7e\x3c\x18\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x18\x0c\xfe\x0c\x18\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x30\x60\xfe\x60\x30\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\xc0\xc0\xc0\xfe\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x28\x6c\xfe\x6c\x28\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x10\x38\x38\x7c\x7c\xfe\xfe\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\xfe\xfe\x7c\x7c\x38\x38\x10\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x18\x3c\x3c\x3c\x18\x18\x00\x18\x18\x00\x00\x00\x00" + "\x00\x00\x66\x66\x66\x24\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x6c\x6c\xfe\x6c\x6c\x6c\xfe\x6c\x6c\x00\x00\x00\x00" + "\x00\x00\x18\x18\x7c\xc6\xc0\x7c\x06\xc6\x7c\x18\x18\x00\x00\x00" + "\x00\x00\x00\x00\x00\xc2\xc6\x0c\x18\x30\x66\xc6\x00\x00\x00\x00" + "\x00\x00\x00\x38\x6c\x6c\x38\x76\xdc\xcc\xcc\x76\x00\x00\x00\x00" + "\x00\x00\x30\x30\x30\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x0c\x18\x30\x30\x30\x30\x30\x18\x0c\x00\x00\x00\x00" + "\x00\x00\x00\x30\x18\x0c\x0c\x0c\x0c\x0c\x18\x30\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x66\x3c\xff\x3c\x66\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x18\x18\x7e\x18\x18\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x18\x18\x30\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\xfe\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x18\x00\x00\x00\x00" + "\x00\x00\x00\x02\x06\x0c\x18\x30\x60\xc0\x80\x00\x00\x00\x00\x00" + "\x00\x00\x00\x38\x6c\xc6\xc6\xd6\xc6\xc6\x6c\x38\x00\x00\x00\x00" + "\x00\x00\x00\x18\x38\x78\x18\x18\x18\x18\x18\x7e\x00\x00\x00\x00" + "\x00\x00\x00\x7c\xc6\x06\x0c\x18\x30\x60\xc6\xfe\x00\x00\x00\x00" + "\x00\x00\x00\x7c\xc6\x06\x06\x3c\x06\x06\xc6\x7c\x00\x00\x00\x00" + "\x00\x00\x00\x0c\x1c\x3c\x6c\xcc\xfe\x0c\x0c\x1e\x00\x00\x00\x00" + "\x00\x00\x00\xfe\xc0\xc0\xc0\xfc\x06\x06\xc6\x7c\x00\x00\x00\x00" + "\x00\x00\x00\x38\x60\xc0\xc0\xfc\xc6\xc6\xc6\x7c\x00\x00\x00\x00" + "\x00\x00\x00\xfe\xc6\x06\x0c\x18\x30\x30\x30\x30\x00\x00\x00\x00" + "\x00\x00\x00\x7c\xc6\xc6\xc6\x7c\xc6\xc6\xc6\x7c\x00\x00\x00\x00" + "\x00\x00\x00\x7c\xc6\xc6\xc6\x7e\x06\x06\x0c\x78\x00\x00\x00\x00" + "\x00\x00\x00\x00\x18\x18\x00\x00\x00\x18\x18\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x18\x18\x00\x00\x00\x18\x18\x30\x00\x00\x00\x00" + "\x00\x00\x00\x0c\x18\x30\x60\xc0\x60\x30\x18\x0c\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x7e\x00\x00\x7e\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x60\x30\x18\x0c\x06\x0c\x18\x30\x60\x00\x00\x00\x00" + "\x00\x00\x00\x7c\xc6\xc6\x0c\x18\x18\x00\x18\x18\x00\x00\x00\x00" + "\x00\x00\x00\x7c\xc6\xc6\xde\xde\xde\xdc\xc0\x7c\x00\x00\x00\x00" + "\x00\x00\x00\x10\x38\x6c\xc6\xc6\xfe\xc6\xc6\xc6\x00\x00\x00\x00" + "\x00\x00\x00\xfc\x66\x66\x66\x7c\x66\x66\x66\xfc\x00\x00\x00\x00" + "\x00\x00\x00\x3c\x66\xc2\xc0\xc0\xc0\xc2\x66\x3c\x00\x00\x00\x00" + "\x00\x00\x00\xf8\x6c\x66\x66\x66\x66\x66\x6c\xf8\x00\x00\x00\x00" + "\x00\x00\x00\xfe\x66\x62\x68\x78\x68\x62\x66\xfe\x00\x00\x00\x00" + "\x00\x00\x00\xfe\x66\x62\x68\x78\x68\x60\x60\xf0\x00\x00\x00\x00" + "\x00\x00\x00\x3c\x66\xc2\xc0\xc0\xde\xc6\x66\x3a\x00\x00\x00\x00" + "\x00\x00\x00\xc6\xc6\xc6\xc6\xfe\xc6\xc6\xc6\xc6\x00\x00\x00\x00" + "\x00\x00\x00\x3c\x18\x18\x18\x18\x18\x18\x18\x3c\x00\x00\x00\x00" + "\x00\x00\x00\x1e\x0c\x0c\x0c\x0c\x0c\xcc\xcc\x78\x00\x00\x00\x00" + "\x00\x00\x00\xe6\x66\x6c\x6c\x78\x6c\x6c\x66\xe6\x00\x00\x00\x00" + "\x00\x00\x00\xf0\x60\x60\x60\x60\x60\x62\x66\xfe\x00\x00\x00\x00" + "\x00\x00\x00\xc6\xee\xfe\xfe\xd6\xc6\xc6\xc6\xc6\x00\x00\x00\x00" + "\x00\x00\x00\xc6\xe6\xf6\xfe\xde\xce\xc6\xc6\xc6\x00\x00\x00\x00" + "\x00\x00\x00\x38\x6c\xc6\xc6\xc6\xc6\xc6\x6c\x38\x00\x00\x00\x00" + "\x00\x00\x00\xfc\x66\x66\x66\x7c\x60\x60\x60\xf0\x00\x00\x00\x00" + "\x00\x00\x00\x7c\xc6\xc6\xc6\xc6\xd6\xde\x7c\x0c\x0e\x00\x00\x00" + "\x00\x00\x00\xfc\x66\x66\x66\x7c\x6c\x66\x66\xe6\x00\x00\x00\x00" + "\x00\x00\x00\x7c\xc6\xc6\x60\x38\x0c\xc6\xc6\x7c\x00\x00\x00\x00" + "\x00\x00\x00\x7e\x7e\x5a\x18\x18\x18\x18\x18\x3c\x00\x00\x00\x00" + "\x00\x00\x00\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\x7c\x00\x00\x00\x00" + "\x00\x00\x00\xc6\xc6\xc6\xc6\xc6\xc6\x6c\x38\x10\x00\x00\x00\x00" + "\x00\x00\x00\xc6\xc6\xc6\xc6\xd6\xd6\xfe\x7c\x6c\x00\x00\x00\x00" + "\x00\x00\x00\xc6\xc6\x6c\x38\x38\x38\x6c\xc6\xc6\x00\x00\x00\x00" + "\x00\x00\x00\x66\x66\x66\x66\x3c\x18\x18\x18\x3c\x00\x00\x00\x00" + "\x00\x00\x00\xfe\xc6\x8c\x18\x30\x60\xc2\xc6\xfe\x00\x00\x00\x00" + "\x00\x00\x00\x3c\x30\x30\x30\x30\x30\x30\x30\x3c\x00\x00\x00\x00" + "\x00\x00\x00\x80\xc0\xe0\x70\x38\x1c\x0e\x06\x02\x00\x00\x00\x00" + "\x00\x00\x00\x3c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x3c\x00\x00\x00\x00" + "\x00\x00\x10\x38\x6c\xc6\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00" + "\x00\x00\x30\x30\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x78\x0c\x7c\xcc\xcc\x76\x00\x00\x00\x00" + "\x00\x00\x00\xe0\x60\x60\x78\x6c\x66\x66\x66\x7c\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x7c\xc6\xc0\xc0\xc6\x7c\x00\x00\x00\x00" + "\x00\x00\x00\x1c\x0c\x0c\x3c\x6c\xcc\xcc\xcc\x76\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x7c\xc6\xfe\xc0\xc6\x7c\x00\x00\x00\x00" + "\x00\x00\x00\x38\x6c\x64\x60\xf0\x60\x60\x60\xf0\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x76\xcc\xcc\xcc\x7c\x0c\xcc\x78\x00\x00" + "\x00\x00\x00\xe0\x60\x60\x6c\x76\x66\x66\x66\xe6\x00\x00\x00\x00" + "\x00\x00\x00\x18\x18\x00\x38\x18\x18\x18\x18\x3c\x00\x00\x00\x00" + "\x00\x00\x00\x06\x06\x00\x0e\x06\x06\x06\x06\x66\x66\x3c\x00\x00" + "\x00\x00\x00\xe0\x60\x60\x66\x6c\x78\x6c\x66\xe6\x00\x00\x00\x00" + "\x00\x00\x00\x38\x18\x18\x18\x18\x18\x18\x18\x3c\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\xec\xfe\xd6\xd6\xd6\xc6\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\xdc\x66\x66\x66\x66\x66\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x7c\xc6\xc6\xc6\xc6\x7c\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\xdc\x66\x66\x66\x7c\x60\x60\xf0\x00\x00" + "\x00\x00\x00\x00\x00\x00\x76\xcc\xcc\xcc\x7c\x0c\x0c\x1e\x00\x00" + "\x00\x00\x00\x00\x00\x00\xdc\x76\x66\x60\x60\xf0\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x7c\xc6\x70\x1c\xc6\x7c\x00\x00\x00\x00" + "\x00\x00\x00\x10\x30\x30\xfc\x30\x30\x30\x36\x1c\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\xcc\xcc\xcc\xcc\xcc\x76\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x66\x66\x66\x66\x3c\x18\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\xc6\xc6\xd6\xd6\xfe\x6c\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\xc6\x6c\x38\x38\x6c\xc6\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\xc6\xc6\xc6\xc6\x7e\x06\x0c\xf8\x00\x00" + "\x00\x00\x00\x00\x00\x00\xfe\xcc\x18\x30\x66\xfe\x00\x00\x00\x00" + "\x00\x00\x00\x0e\x18\x18\x18\x70\x18\x18\x18\x0e\x00\x00\x00\x00" + "\x00\x00\x00\x18\x18\x18\x18\x00\x18\x18\x18\x18\x00\x00\x00\x00" + "\x00\x00\x00\x70\x18\x18\x18\x0e\x18\x18\x18\x70\x00\x00\x00\x00" + "\x00\x00\x00\x76\xdc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x10\x38\x6c\xc6\xc6\xfe\x00\x00\x00\x00\x00" + "\x00\x00\x00\x3c\x66\xc2\xc0\xc0\xc2\x66\x3c\x0c\x06\x7c\x00\x00" + "\x00\x00\x00\xcc\xcc\x00\xcc\xcc\xcc\xcc\xcc\x76\x00\x00\x00\x00" + "\x00\x00\x0c\x18\x30\x00\x7c\xc6\xfe\xc0\xc6\x7c\x00\x00\x00\x00" + "\x00\x00\x10\x38\x6c\x00\x78\x0c\x7c\xcc\xcc\x76\x00\x00\x00\x00" + "\x00\x00\x00\xcc\xcc\x00\x78\x0c\x7c\xcc\xcc\x76\x00\x00\x00\x00" + "\x00\x00\x60\x30\x18\x00\x78\x0c\x7c\xcc\xcc\x76\x00\x00\x00\x00" + "\x00\x00\x38\x6c\x38\x00\x78\x0c\x7c\xcc\xcc\x76\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x3c\x66\x60\x66\x3c\x0c\x06\x3c\x00\x00\x00" + "\x00\x00\x10\x38\x6c\x00\x7c\xc6\xfe\xc0\xc6\x7c\x00\x00\x00\x00" + "\x00\x00\x00\xcc\xcc\x00\x7c\xc6\xfe\xc0\xc6\x7c\x00\x00\x00\x00" + "\x00\x00\x60\x30\x18\x00\x7c\xc6\xfe\xc0\xc6\x7c\x00\x00\x00\x00" + "\x00\x00\x00\x66\x66\x00\x38\x18\x18\x18\x18\x3c\x00\x00\x00\x00" + "\x00\x00\x18\x3c\x66\x00\x38\x18\x18\x18\x18\x3c\x00\x00\x00\x00" + "\x00\x00\x60\x30\x18\x00\x38\x18\x18\x18\x18\x3c\x00\x00\x00\x00" + "\x00\x00\xc6\xc6\x10\x38\x6c\xc6\xc6\xfe\xc6\xc6\x00\x00\x00\x00" + "\x00\x00\x38\x6c\x38\x38\x6c\xc6\xc6\xfe\xc6\xc6\x00\x00\x00\x00" + "\x00\x00\x18\x30\x60\xfe\x66\x60\x7c\x60\x66\xfe\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\xcc\x76\x36\x7e\xd8\xd8\x6e\x00\x00\x00\x00" + "\x00\x00\x00\x3e\x6c\xcc\xcc\xfe\xcc\xcc\xcc\xce\x00\x00\x00\x00" + "\x00\x00\x10\x38\x6c\x00\x7c\xc6\xc6\xc6\xc6\x7c\x00\x00\x00\x00" + "\x00\x00\x00\xc6\xc6\x00\x7c\xc6\xc6\xc6\xc6\x7c\x00\x00\x00\x00" + "\x00\x00\x60\x30\x18\x00\x7c\xc6\xc6\xc6\xc6\x7c\x00\x00\x00\x00" + "\x00\x00\x30\x78\xcc\x00\xcc\xcc\xcc\xcc\xcc\x76\x00\x00\x00\x00" + "\x00\x00\x60\x30\x18\x00\xcc\xcc\xcc\xcc\xcc\x76\x00\x00\x00\x00" + "\x00\x00\x00\xc6\xc6\x00\xc6\xc6\xc6\xc6\x7e\x06\x0c\xf8\x00\x00" + "\x00\x00\xc6\xc6\x38\x6c\xc6\xc6\xc6\xc6\x6c\x38\x00\x00\x00\x00" + "\x00\x00\xc6\xc6\x00\xc6\xc6\xc6\xc6\xc6\xc6\x7c\x00\x00\x00\x00" + "\x00\x00\x18\x18\x3c\x66\x60\x60\x66\x3c\x18\x18\x00\x00\x00\x00" + "\x00\x00\x38\x6c\x64\x60\xf0\x60\x60\x60\xe6\xfc\x00\x00\x00\x00" + "\x00\x00\x00\x66\x66\x3c\x18\x7e\x18\x7e\x18\x18\x00\x00\x00\x00" + "\x00\x00\xf8\xcc\xcc\xf8\xc4\xcc\xde\xcc\xcc\xc6\x00\x00\x00\x00" + "\x00\x00\x0e\x1b\x18\x18\x7e\x18\x18\x18\x18\xd8\x70\x00\x00\x00" + "\x00\x00\x18\x30\x60\x00\x78\x0c\x7c\xcc\xcc\x76\x00\x00\x00\x00" + "\x00\x00\x0c\x18\x30\x00\x38\x18\x18\x18\x18\x3c\x00\x00\x00\x00" + "\x00\x00\x18\x30\x60\x00\x7c\xc6\xc6\xc6\xc6\x7c\x00\x00\x00\x00" + "\x00\x00\x18\x30\x60\x00\xcc\xcc\xcc\xcc\xcc\x76\x00\x00\x00\x00" + "\x00\x00\x00\x76\xdc\x00\xdc\x66\x66\x66\x66\x66\x00\x00\x00\x00" + "\x00\x00\x76\xdc\x00\xc6\xe6\xf6\xde\xce\xc6\xc6\x00\x00\x00\x00" + "\x00\x00\x3c\x6c\x6c\x3e\x00\x7e\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x38\x6c\x6c\x38\x00\x7c\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x30\x30\x00\x30\x30\x60\xc6\xc6\x7c\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\xfe\xc0\xc0\xc0\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\xfe\x06\x06\x06\x00\x00\x00\x00\x00" + "\x00\x00\x00\x40\xc6\xcc\xd8\x30\x60\xdc\x86\x0c\x18\x3e\x00\x00" + "\x00\x00\x00\x40\xc6\xcc\xd8\x30\x66\xce\x96\x3e\x06\x06\x00\x00" + "\x00\x00\x00\x18\x18\x00\x18\x18\x3c\x3c\x3c\x18\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x36\x6c\xd8\x6c\x36\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\xd8\x6c\x36\x6c\xd8\x00\x00\x00\x00\x00\x00" + "\xaa\x00\xaa\x00\xaa\x00\xaa\x00\xaa\x00\xaa\x00\xaa\x00\xaa\x00" + "\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55" + "\x55\xff\x55\xff\x55\xff\x55\xff\x55\xff\x55\xff\x55\xff\x55\xff" + "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\x01\x01\x01\x01\x01\x01\x01\x01\xff\x01\x01\x01\x01\x01\x01\x01" + "\x01\x01\x01\x01\x01\x01\xff\x01\x01\xff\x01\x01\x01\x01\x01\x01" + "\x03\x03\x03\x03\x03\x03\x03\x03\xff\x03\x03\x03\x03\x03\x03\x03" + "\xff\xff\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01" + "\xff\xff\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\x03\x03\x03\x03\x03\x03\xff\x03\x03\xff\x03\x03\x03\x03\x03\x03" + "\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24" + "\x3f\x3f\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24" + "\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x3f\x3f" + "\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\xff\xff" + "\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\xff\xff" + "\xf0\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x1f" + "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\xff" + "\xff\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\x80\x80\x80\x80\x80\x80\x80\x80\xff\x80\x80\x80\x80\x80\x80\x80" + "\x00\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00" + "\x10\x10\x10\x10\x10\x10\x10\x10\xff\x10\x10\x10\x10\x10\x10\x10" + "\x80\x80\x80\x80\x80\x80\xff\x80\x80\xff\x80\x80\x80\x80\x80\x80" + "\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xff\xc0\xc0\xc0\xc0\xc0\xc0\xc0" + "\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\xfc\xfc" + "\xfc\xfc\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24" + "\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\xff\xff" + "\xff\xff\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24" + "\xc0\xc0\xc0\xc0\xc0\xc0\xff\xc0\xc0\xff\xc0\xc0\xc0\xc0\xc0\xc0" + "\x00\x00\x00\x00\x00\x00\xff\x00\x00\xff\x00\x00\x00\x00\x00\x00" + "\x24\x24\x24\x24\x24\x24\xff\x24\x24\xff\x24\x24\x24\x24\x24\x24" + "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\xff\xff" + "\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\xff" + "\xff\xff\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\xff\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24" + "\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\xff" + "\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xff" + "\xff\xff\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80" + "\xff\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0" + "\x24\x24\x24\x24\x24\x24\xff\x24\x24\xff\x24\x24\x24\x24\x24\x24" + "\x10\x10\x10\x10\x10\x10\xff\x10\x10\xff\x10\x10\x10\x10\x10\x10" + "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\xf0" + "\x1f\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" + "\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\xff\xff\xff\xff" + "\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0" + "\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f" + "\xff\xff\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x76\xdc\xd8\xd8\xdc\x76\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x7c\xc6\xfc\xc6\xc6\xfc\xc0\xc0\x40\x00\x00" + "\x00\x00\x00\xfe\xc6\xc6\xc0\xc0\xc0\xc0\xc0\xc0\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\xfe\x6c\x6c\x6c\x6c\x6c\x6c\x00\x00\x00\x00" + "\x00\x00\x00\xfe\xc6\x60\x30\x18\x30\x60\xc6\xfe\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x7e\xd8\xd8\xd8\xd8\x70\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x66\x66\x66\x66\x7c\x60\x60\xc0\x00\x00\x00" + "\x00\x00\x00\x00\x00\x76\xdc\x18\x18\x18\x18\x18\x00\x00\x00\x00" + "\x00\x00\x00\x7e\x18\x3c\x66\x66\x66\x3c\x18\x7e\x00\x00\x00\x00" + "\x00\x00\x00\x38\x6c\xc6\xc6\xfe\xc6\xc6\x6c\x38\x00\x00\x00\x00" + "\x00\x00\x00\x38\x6c\xc6\xc6\xc6\x6c\x6c\x6c\xee\x00\x00\x00\x00" + "\x00\x00\x00\x1e\x30\x18\x0c\x3e\x66\x66\x66\x3c\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x7e\xdb\xdb\x7e\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x03\x06\x7e\xdb\xdb\xf3\x7e\x60\xc0\x00\x00\x00\x00" + "\x00\x00\x00\x1c\x30\x60\x60\x7c\x60\x60\x30\x1c\x00\x00\x00\x00" + "\x00\x00\x00\x00\x7c\xc6\xc6\xc6\xc6\xc6\xc6\xc6\x00\x00\x00\x00" + "\x00\x00\x00\x00\xfe\x00\x00\xfe\x00\x00\xfe\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x18\x18\x7e\x18\x18\x00\x00\xff\x00\x00\x00\x00" + "\x00\x00\x00\x30\x18\x0c\x06\x0c\x18\x30\x00\x7e\x00\x00\x00\x00" + "\x00\x00\x00\x0c\x18\x30\x60\x30\x18\x0c\x00\x7e\x00\x00\x00\x00" + "\x00\x00\x00\x0e\x1b\x1b\x18\x18\x18\x18\x18\x18\x18\x18\x00\x00" + "\x00\x00\x18\x18\x18\x18\x18\x18\x18\xd8\xd8\x70\x00\x00\x00\x00" + "\x00\x00\x00\x00\x18\x18\x00\x7e\x00\x18\x18\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x76\xdc\x00\x76\xdc\x00\x00\x00\x00\x00\x00" + "\x00\x00\x38\x6c\x6c\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x18\x18\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x18\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x0f\x0c\x0c\x0c\x0c\x0c\xec\x6c\x3c\x1c\x00\x00\x00\x00" + "\x00\x00\xd8\x6c\x6c\x6c\x6c\x6c\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x70\xd8\x30\x60\xc8\xf8\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x7c\x7c\x7c\x7c\x7c\x7c\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + , "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x7e\x81\xa5\x81\x81\xbd\x99\x81\x7e\x00\x00\x00" + "\x00\x00\x7e\xff\xdb\xff\xff\xc3\xe7\xff\x7e\x00\x00\x00" + "\x00\x00\x00\x6c\xfe\xfe\xfe\xfe\x7c\x38\x10\x00\x00\x00" + "\x00\x00\x00\x10\x38\x7c\xfe\x7c\x38\x10\x00\x00\x00\x00" + "\x00\x00\x18\x3c\x3c\xe7\xe7\xe7\x18\x18\x7e\x00\x00\x00" + "\x00\x00\x18\x3c\x7e\xff\xff\x7e\x18\x18\x7e\x00\x00\x00" + "\x00\x00\x00\x00\x00\x18\x3c\x3c\x18\x00\x00\x00\x00\x00" + "\x00\xff\xff\xff\xff\xe7\xc3\xc3\xe7\xff\xff\xff\xff\x00" + "\x00\x00\x00\x00\x3c\x66\x42\x42\x66\x3c\x00\x00\x00\x00" + "\x00\xff\xff\xff\xc3\x99\xbd\xbd\x99\xc3\xff\xff\xff\x00" + "\x00\x00\x3e\x0e\x1a\x32\x78\xcc\xcc\xcc\x78\x00\x00\x00" + "\x00\x00\x3c\x66\x66\x66\x3c\x18\x7e\x18\x18\x00\x00\x00" + "\x00\x00\x3f\x33\x3f\x30\x30\x30\x70\xf0\xe0\x00\x00\x00" + "\x00\x00\x7f\x63\x7f\x63\x63\x63\x67\xe7\xe6\xc0\x00\x00" + "\x00\x00\x18\x18\xdb\x3c\xe7\x3c\xdb\x18\x18\x00\x00\x00" + "\x00\x00\x80\xc0\xe0\xf8\xfe\xf8\xe0\xc0\x80\x00\x00\x00" + "\x00\x00\x02\x06\x0e\x3e\xfe\x3e\x0e\x06\x02\x00\x00\x00" + "\x00\x00\x18\x3c\x7e\x18\x18\x18\x7e\x3c\x18\x00\x00\x00" + "\x00\x00\x66\x66\x66\x66\x66\x66\x00\x66\x66\x00\x00\x00" + "\x00\x00\x7f\xdb\xdb\xdb\x7b\x1b\x1b\x1b\x1b\x00\x00\x00" + "\x00\x00\x7c\xc6\x60\x38\x6c\xc6\x6c\x38\x0c\xc6\x7c\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\xfe\xfe\xfe\x00\x00\x00" + "\x00\x00\x18\x3c\x7e\x18\x18\x18\x7e\x3c\x18\x7e\x00\x00" + "\x00\x00\x18\x3c\x7e\x18\x18\x18\x18\x18\x18\x00\x00\x00" + "\x00\x00\x18\x18\x18\x18\x18\x18\x7e\x3c\x18\x00\x00\x00" + "\x00\x00\x00\x00\x18\x0c\xfe\x0c\x18\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x30\x60\xfe\x60\x30\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\xc0\xc0\xc0\xfe\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x28\x6c\xfe\x6c\x28\x00\x00\x00\x00\x00" + "\x00\x00\x00\x10\x38\x38\x7c\x7c\xfe\xfe\x00\x00\x00\x00" + "\x00\x00\x00\xfe\xfe\x7c\x7c\x38\x38\x10\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x18\x3c\x3c\x3c\x18\x18\x00\x18\x18\x00\x00\x00" + "\x00\x66\x66\x66\x24\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x6c\x6c\xfe\x6c\x6c\x6c\xfe\x6c\x6c\x00\x00\x00" + "\x00\x18\x18\x7c\xc6\xc0\x7c\x06\xc6\x7c\x18\x18\x00\x00" + "\x00\x00\x00\x00\xc2\xc6\x0c\x18\x30\x66\xc6\x00\x00\x00" + "\x00\x00\x38\x6c\x6c\x38\x76\xdc\xcc\xcc\x76\x00\x00\x00" + "\x00\x30\x30\x30\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x0c\x18\x30\x30\x30\x30\x30\x18\x0c\x00\x00\x00" + "\x00\x00\x30\x18\x0c\x0c\x0c\x0c\x0c\x18\x30\x00\x00\x00" + "\x00\x00\x00\x00\x66\x3c\xff\x3c\x66\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x18\x18\x7e\x18\x18\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x18\x18\x18\x30\x00\x00" + "\x00\x00\x00\x00\x00\x00\xfe\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x18\x18\x00\x00\x00" + "\x00\x00\x02\x06\x0c\x18\x30\x60\xc0\x80\x00\x00\x00\x00" + "\x00\x00\x38\x6c\xc6\xc6\xd6\xc6\xc6\x6c\x38\x00\x00\x00" + "\x00\x00\x18\x38\x78\x18\x18\x18\x18\x18\x7e\x00\x00\x00" + "\x00\x00\x7c\xc6\x06\x0c\x18\x30\x60\xc6\xfe\x00\x00\x00" + "\x00\x00\x7c\xc6\x06\x06\x3c\x06\x06\xc6\x7c\x00\x00\x00" + "\x00\x00\x0c\x1c\x3c\x6c\xcc\xfe\x0c\x0c\x1e\x00\x00\x00" + "\x00\x00\xfe\xc0\xc0\xc0\xfc\x06\x06\xc6\x7c\x00\x00\x00" + "\x00\x00\x38\x60\xc0\xc0\xfc\xc6\xc6\xc6\x7c\x00\x00\x00" + "\x00\x00\xfe\xc6\x06\x0c\x18\x30\x30\x30\x30\x00\x00\x00" + "\x00\x00\x7c\xc6\xc6\xc6\x7c\xc6\xc6\xc6\x7c\x00\x00\x00" + "\x00\x00\x7c\xc6\xc6\xc6\x7e\x06\x06\x0c\x78\x00\x00\x00" + "\x00\x00\x00\x18\x18\x00\x00\x00\x18\x18\x00\x00\x00\x00" + "\x00\x00\x00\x18\x18\x00\x00\x00\x18\x18\x30\x00\x00\x00" + "\x00\x00\x0c\x18\x30\x60\xc0\x60\x30\x18\x0c\x00\x00\x00" + "\x00\x00\x00\x00\x00\x7e\x00\x00\x7e\x00\x00\x00\x00\x00" + "\x00\x00\x60\x30\x18\x0c\x06\x0c\x18\x30\x60\x00\x00\x00" + "\x00\x00\x7c\xc6\xc6\x0c\x18\x18\x00\x18\x18\x00\x00\x00" + "\x00\x00\x7c\xc6\xc6\xde\xde\xde\xdc\xc0\x7c\x00\x00\x00" + "\x00\x00\x10\x38\x6c\xc6\xc6\xfe\xc6\xc6\xc6\x00\x00\x00" + "\x00\x00\xfc\x66\x66\x66\x7c\x66\x66\x66\xfc\x00\x00\x00" + "\x00\x00\x3c\x66\xc2\xc0\xc0\xc0\xc2\x66\x3c\x00\x00\x00" + "\x00\x00\xf8\x6c\x66\x66\x66\x66\x66\x6c\xf8\x00\x00\x00" + "\x00\x00\xfe\x66\x62\x68\x78\x68\x62\x66\xfe\x00\x00\x00" + "\x00\x00\xfe\x66\x62\x68\x78\x68\x60\x60\xf0\x00\x00\x00" + "\x00\x00\x3c\x66\xc2\xc0\xc0\xde\xc6\x66\x3a\x00\x00\x00" + "\x00\x00\xc6\xc6\xc6\xc6\xfe\xc6\xc6\xc6\xc6\x00\x00\x00" + "\x00\x00\x3c\x18\x18\x18\x18\x18\x18\x18\x3c\x00\x00\x00" + "\x00\x00\x1e\x0c\x0c\x0c\x0c\x0c\xcc\xcc\x78\x00\x00\x00" + "\x00\x00\xe6\x66\x6c\x6c\x78\x6c\x6c\x66\xe6\x00\x00\x00" + "\x00\x00\xf0\x60\x60\x60\x60\x60\x62\x66\xfe\x00\x00\x00" + "\x00\x00\xc6\xee\xfe\xfe\xd6\xc6\xc6\xc6\xc6\x00\x00\x00" + "\x00\x00\xc6\xe6\xf6\xfe\xde\xce\xc6\xc6\xc6\x00\x00\x00" + "\x00\x00\x38\x6c\xc6\xc6\xc6\xc6\xc6\x6c\x38\x00\x00\x00" + "\x00\x00\xfc\x66\x66\x66\x7c\x60\x60\x60\xf0\x00\x00\x00" + "\x00\x00\x7c\xc6\xc6\xc6\xc6\xd6\xde\x7c\x0c\x0e\x00\x00" + "\x00\x00\xfc\x66\x66\x66\x7c\x6c\x66\x66\xe6\x00\x00\x00" + "\x00\x00\x7c\xc6\xc6\x60\x38\x0c\xc6\xc6\x7c\x00\x00\x00" + "\x00\x00\x7e\x7e\x5a\x18\x18\x18\x18\x18\x3c\x00\x00\x00" + "\x00\x00\xc6\xc6\xc6\xc6\xc6\xc6\xc6\xc6\x7c\x00\x00\x00" + "\x00\x00\xc6\xc6\xc6\xc6\xc6\xc6\x6c\x38\x10\x00\x00\x00" + "\x00\x00\xc6\xc6\xc6\xc6\xd6\xd6\xfe\x7c\x6c\x00\x00\x00" + "\x00\x00\xc6\xc6\x6c\x38\x38\x38\x6c\xc6\xc6\x00\x00\x00" + "\x00\x00\x66\x66\x66\x66\x3c\x18\x18\x18\x3c\x00\x00\x00" + "\x00\x00\xfe\xc6\x8c\x18\x30\x60\xc2\xc6\xfe\x00\x00\x00" + "\x00\x00\x3c\x30\x30\x30\x30\x30\x30\x30\x3c\x00\x00\x00" + "\x00\x00\x80\xc0\xe0\x70\x38\x1c\x0e\x06\x02\x00\x00\x00" + "\x00\x00\x3c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x3c\x00\x00\x00" + "\x00\x10\x38\x6c\xc6\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\x00" + "\x00\x30\x30\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x78\x0c\x7c\xcc\xcc\x76\x00\x00\x00" + "\x00\x00\xe0\x60\x60\x78\x6c\x66\x66\x66\x7c\x00\x00\x00" + "\x00\x00\x00\x00\x00\x7c\xc6\xc0\xc0\xc6\x7c\x00\x00\x00" + "\x00\x00\x1c\x0c\x0c\x3c\x6c\xcc\xcc\xcc\x76\x00\x00\x00" + "\x00\x00\x00\x00\x00\x7c\xc6\xfe\xc0\xc6\x7c\x00\x00\x00" + "\x00\x00\x38\x6c\x64\x60\xf0\x60\x60\x60\xf0\x00\x00\x00" + "\x00\x00\x00\x00\x00\x76\xcc\xcc\xcc\x7c\x0c\xcc\x78\x00" + "\x00\x00\xe0\x60\x60\x6c\x76\x66\x66\x66\xe6\x00\x00\x00" + "\x00\x00\x18\x18\x00\x38\x18\x18\x18\x18\x3c\x00\x00\x00" + "\x00\x00\x06\x06\x00\x0e\x06\x06\x06\x06\x66\x66\x3c\x00" + "\x00\x00\xe0\x60\x60\x66\x6c\x78\x6c\x66\xe6\x00\x00\x00" + "\x00\x00\x38\x18\x18\x18\x18\x18\x18\x18\x3c\x00\x00\x00" + "\x00\x00\x00\x00\x00\xec\xfe\xd6\xd6\xd6\xc6\x00\x00\x00" + "\x00\x00\x00\x00\x00\xdc\x66\x66\x66\x66\x66\x00\x00\x00" + "\x00\x00\x00\x00\x00\x7c\xc6\xc6\xc6\xc6\x7c\x00\x00\x00" + "\x00\x00\x00\x00\x00\xdc\x66\x66\x66\x7c\x60\x60\xf0\x00" + "\x00\x00\x00\x00\x00\x76\xcc\xcc\xcc\x7c\x0c\x0c\x1e\x00" + "\x00\x00\x00\x00\x00\xdc\x76\x66\x60\x60\xf0\x00\x00\x00" + "\x00\x00\x00\x00\x00\x7c\xc6\x70\x1c\xc6\x7c\x00\x00\x00" + "\x00\x00\x10\x30\x30\xfc\x30\x30\x30\x36\x1c\x00\x00\x00" + "\x00\x00\x00\x00\x00\xcc\xcc\xcc\xcc\xcc\x76\x00\x00\x00" + "\x00\x00\x00\x00\x00\x66\x66\x66\x66\x3c\x18\x00\x00\x00" + "\x00\x00\x00\x00\x00\xc6\xc6\xd6\xd6\xfe\x6c\x00\x00\x00" + "\x00\x00\x00\x00\x00\xc6\x6c\x38\x38\x6c\xc6\x00\x00\x00" + "\x00\x00\x00\x00\x00\xc6\xc6\xc6\xc6\x7e\x06\x0c\xf8\x00" + "\x00\x00\x00\x00\x00\xfe\xcc\x18\x30\x66\xfe\x00\x00\x00" + "\x00\x00\x0e\x18\x18\x18\x70\x18\x18\x18\x0e\x00\x00\x00" + "\x00\x00\x18\x18\x18\x18\x00\x18\x18\x18\x18\x00\x00\x00" + "\x00\x00\x70\x18\x18\x18\x0e\x18\x18\x18\x70\x00\x00\x00" + "\x00\x00\x76\xdc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x10\x38\x6c\xc6\xc6\xfe\x00\x00\x00\x00" + "\x00\x00\x3c\x66\xc2\xc0\xc0\xc2\x66\x3c\x0c\x06\x7c\x00" + "\x00\x00\xcc\xcc\x00\xcc\xcc\xcc\xcc\xcc\x76\x00\x00\x00" + "\x00\x0c\x18\x30\x00\x7c\xc6\xfe\xc0\xc6\x7c\x00\x00\x00" + "\x00\x10\x38\x6c\x00\x78\x0c\x7c\xcc\xcc\x76\x00\x00\x00" + "\x00\x00\xcc\xcc\x00\x78\x0c\x7c\xcc\xcc\x76\x00\x00\x00" + "\x00\x60\x30\x18\x00\x78\x0c\x7c\xcc\xcc\x76\x00\x00\x00" + "\x00\x38\x6c\x38\x00\x78\x0c\x7c\xcc\xcc\x76\x00\x00\x00" + "\x00\x00\x00\x00\x3c\x66\x60\x66\x3c\x0c\x06\x3c\x00\x00" + "\x00\x10\x38\x6c\x00\x7c\xc6\xfe\xc0\xc6\x7c\x00\x00\x00" + "\x00\x00\xcc\xcc\x00\x7c\xc6\xfe\xc0\xc6\x7c\x00\x00\x00" + "\x00\x60\x30\x18\x00\x7c\xc6\xfe\xc0\xc6\x7c\x00\x00\x00" + "\x00\x00\x66\x66\x00\x38\x18\x18\x18\x18\x3c\x00\x00\x00" + "\x00\x18\x3c\x66\x00\x38\x18\x18\x18\x18\x3c\x00\x00\x00" + "\x00\x60\x30\x18\x00\x38\x18\x18\x18\x18\x3c\x00\x00\x00" + "\x00\xc6\xc6\x10\x38\x6c\xc6\xc6\xfe\xc6\xc6\x00\x00\x00" + "\x00\x38\x6c\x38\x38\x6c\xc6\xc6\xfe\xc6\xc6\x00\x00\x00" + "\x00\x18\x30\x60\xfe\x66\x60\x7c\x60\x66\xfe\x00\x00\x00" + "\x00\x00\x00\x00\xcc\x76\x36\x7e\xd8\xd8\x6e\x00\x00\x00" + "\x00\x00\x3e\x6c\xcc\xcc\xfe\xcc\xcc\xcc\xce\x00\x00\x00" + "\x00\x10\x38\x6c\x00\x7c\xc6\xc6\xc6\xc6\x7c\x00\x00\x00" + "\x00\x00\xc6\xc6\x00\x7c\xc6\xc6\xc6\xc6\x7c\x00\x00\x00" + "\x00\x60\x30\x18\x00\x7c\xc6\xc6\xc6\xc6\x7c\x00\x00\x00" + "\x00\x30\x78\xcc\x00\xcc\xcc\xcc\xcc\xcc\x76\x00\x00\x00" + "\x00\x60\x30\x18\x00\xcc\xcc\xcc\xcc\xcc\x76\x00\x00\x00" + "\x00\x00\xc6\xc6\x00\xc6\xc6\xc6\xc6\x7e\x06\x0c\xf8\x00" + "\x00\xc6\xc6\x38\x6c\xc6\xc6\xc6\xc6\x6c\x38\x00\x00\x00" + "\x00\xc6\xc6\x00\xc6\xc6\xc6\xc6\xc6\xc6\x7c\x00\x00\x00" + "\x00\x18\x18\x3c\x66\x60\x60\x66\x3c\x18\x18\x00\x00\x00" + "\x00\x38\x6c\x64\x60\xf0\x60\x60\x60\xe6\xfc\x00\x00\x00" + "\x00\x00\x66\x66\x3c\x18\x7e\x18\x7e\x18\x18\x00\x00\x00" + "\x00\xf8\xcc\xcc\xf8\xc4\xcc\xde\xcc\xcc\xc6\x00\x00\x00" + "\x00\x0e\x1b\x18\x18\x7e\x18\x18\x18\x18\xd8\x70\x00\x00" + "\x00\x18\x30\x60\x00\x78\x0c\x7c\xcc\xcc\x76\x00\x00\x00" + "\x00\x0c\x18\x30\x00\x38\x18\x18\x18\x18\x3c\x00\x00\x00" + "\x00\x18\x30\x60\x00\x7c\xc6\xc6\xc6\xc6\x7c\x00\x00\x00" + "\x00\x18\x30\x60\x00\xcc\xcc\xcc\xcc\xcc\x76\x00\x00\x00" + "\x00\x00\x76\xdc\x00\xdc\x66\x66\x66\x66\x66\x00\x00\x00" + "\x00\x76\xdc\x00\xc6\xe6\xf6\xde\xce\xc6\xc6\x00\x00\x00" + "\x00\x3c\x6c\x6c\x3e\x00\x7e\x00\x00\x00\x00\x00\x00\x00" + "\x00\x38\x6c\x6c\x38\x00\x7c\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x30\x30\x00\x30\x30\x60\xc6\xc6\x7c\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\xfe\xc0\xc0\xc0\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\xfe\x06\x06\x06\x00\x00\x00\x00" + "\x00\x00\x40\xc6\xcc\xd8\x30\x60\xdc\x86\x0c\x18\x3e\x00" + "\x00\x00\x40\xc6\xcc\xd8\x30\x66\xce\x96\x3e\x06\x06\x00" + "\x00\x00\x18\x18\x00\x18\x18\x3c\x3c\x3c\x18\x00\x00\x00" + "\x00\x00\x00\x00\x36\x6c\xd8\x6c\x36\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\xd8\x6c\x36\x6c\xd8\x00\x00\x00\x00\x00" + "\xaa\x00\xaa\x00\xaa\x00\xaa\x00\xaa\x00\xaa\x00\xaa\x00" + "\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55" + "\x55\xff\x55\xff\x55\xff\x55\xff\x55\xff\x55\xff\x55\xff" + "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\x01\x01\x01\x01\x01\x01\x01\xff\x01\x01\x01\x01\x01\x01" + "\x01\x01\x01\x01\x01\xff\x01\x01\xff\x01\x01\x01\x01\x01" + "\x03\x03\x03\x03\x03\x03\x03\xff\x03\x03\x03\x03\x03\x03" + "\xff\xff\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01" + "\xff\xff\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\x03\x03\x03\x03\x03\xff\x03\x03\xff\x03\x03\x03\x03\x03" + "\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24" + "\x3f\x3f\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24" + "\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x3f\x3f" + "\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\xff\xff" + "\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\xff\xff" + "\xf0\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x1f" + "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\xff" + "\xff\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\x80\x80\x80\x80\x80\x80\x80\xff\x80\x80\x80\x80\x80\x80" + "\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00" + "\x10\x10\x10\x10\x10\x10\x10\xff\x10\x10\x10\x10\x10\x10" + "\x80\x80\x80\x80\x80\xff\x80\x80\xff\x80\x80\x80\x80\x80" + "\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xff\xc0\xc0\xc0\xc0\xc0\xc0" + "\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\xfc\xfc" + "\xfc\xfc\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24" + "\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\xff\xff" + "\xff\xff\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24" + "\xc0\xc0\xc0\xc0\xc0\xff\xc0\xc0\xff\xc0\xc0\xc0\xc0\xc0" + "\x00\x00\x00\x00\x00\xff\x00\x00\xff\x00\x00\x00\x00\x00" + "\x24\x24\x24\x24\x24\xff\x24\x24\xff\x24\x24\x24\x24\x24" + "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\xff\xff" + "\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\xff" + "\xff\xff\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\xff\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24" + "\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\xff" + "\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xff" + "\xff\xff\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80" + "\xff\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0" + "\x24\x24\x24\x24\x24\xff\x24\x24\xff\x24\x24\x24\x24\x24" + "\x10\x10\x10\x10\x10\xff\x10\x10\xff\x10\x10\x10\x10\x10" + "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\xf0" + "\x1f\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" + "\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\xff\xff\xff" + "\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0" + "\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f" + "\xff\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x76\xdc\xd8\xd8\xdc\x76\x00\x00\x00" + "\x00\x00\x00\x00\x7c\xc6\xfc\xc6\xc6\xfc\xc0\xc0\x40\x00" + "\x00\x00\xfe\xc6\xc6\xc0\xc0\xc0\xc0\xc0\xc0\x00\x00\x00" + "\x00\x00\x00\x00\xfe\x6c\x6c\x6c\x6c\x6c\x6c\x00\x00\x00" + "\x00\x00\xfe\xc6\x60\x30\x18\x30\x60\xc6\xfe\x00\x00\x00" + "\x00\x00\x00\x00\x00\x7e\xd8\xd8\xd8\xd8\x70\x00\x00\x00" + "\x00\x00\x00\x00\x66\x66\x66\x66\x7c\x60\x60\xc0\x00\x00" + "\x00\x00\x00\x00\x76\xdc\x18\x18\x18\x18\x18\x00\x00\x00" + "\x00\x00\x7e\x18\x3c\x66\x66\x66\x3c\x18\x7e\x00\x00\x00" + "\x00\x00\x38\x6c\xc6\xc6\xfe\xc6\xc6\x6c\x38\x00\x00\x00" + "\x00\x00\x38\x6c\xc6\xc6\xc6\x6c\x6c\x6c\xee\x00\x00\x00" + "\x00\x00\x1e\x30\x18\x0c\x3e\x66\x66\x66\x3c\x00\x00\x00" + "\x00\x00\x00\x00\x00\x7e\xdb\xdb\x7e\x00\x00\x00\x00\x00" + "\x00\x00\x03\x06\x7e\xdb\xdb\xf3\x7e\x60\xc0\x00\x00\x00" + "\x00\x00\x1c\x30\x60\x60\x7c\x60\x60\x30\x1c\x00\x00\x00" + "\x00\x00\x00\x7c\xc6\xc6\xc6\xc6\xc6\xc6\xc6\x00\x00\x00" + "\x00\x00\x00\xfe\x00\x00\xfe\x00\x00\xfe\x00\x00\x00\x00" + "\x00\x00\x00\x18\x18\x7e\x18\x18\x00\x00\xff\x00\x00\x00" + "\x00\x00\x30\x18\x0c\x06\x0c\x18\x30\x00\x7e\x00\x00\x00" + "\x00\x00\x0c\x18\x30\x60\x30\x18\x0c\x00\x7e\x00\x00\x00" + "\x00\x00\x0e\x1b\x1b\x18\x18\x18\x18\x18\x18\x18\x18\x00" + "\x00\x18\x18\x18\x18\x18\x18\x18\xd8\xd8\x70\x00\x00\x00" + "\x00\x00\x00\x18\x18\x00\x7e\x00\x18\x18\x00\x00\x00\x00" + "\x00\x00\x00\x00\x76\xdc\x00\x76\xdc\x00\x00\x00\x00\x00" + "\x00\x38\x6c\x6c\x38\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x18\x18\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x18\x00\x00\x00\x00\x00\x00" + "\x00\x0f\x0c\x0c\x0c\x0c\x0c\xec\x6c\x3c\x1c\x00\x00\x00" + "\x00\xd8\x6c\x6c\x6c\x6c\x6c\x00\x00\x00\x00\x00\x00\x00" + "\x00\x70\xd8\x30\x60\xc8\xf8\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x7c\x7c\x7c\x7c\x7c\x7c\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + , "\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x40\x40\x58\x00\x00\x00" + "\x00\x7c\x7e\x7e\x66\x7c\x18\x00" + "\x00\x28\x7c\x7c\x3c\x18\x00\x00" + "\x00\x00\x38\x3c\x38\x10\x00\x00" + "\x00\x18\x3c\x66\x3c\x18\x00\x00" + "\x00\x18\x3c\x7c\x18\x18\x00\x00" + "\x00\x00\x00\x18\x18\x00\x00\x00" + "\x7e\x7e\x7e\x66\x66\x7e\x7e\x7e" + "\x00\x00\x28\x24\x24\x18\x00\x00" + "\x7e\x7e\x42\x58\x58\x66\x7e\x7e" + "\x00\x0c\x14\x38\x68\x68\x00\x00" + "\x00\x2c\x24\x18\x18\x18\x00\x00" + "\x00\x16\x10\x10\x30\x70\x00\x00" + "\x00\x36\x36\x26\x26\x64\x60\x00" + "\x00\x18\x3c\x3c\x3c\x18\x00\x00" + "\x00\x60\x70\x78\x70\x60\x00\x00" + "\x00\x04\x1c\x3c\x1c\x04\x00\x00" + "\x00\x18\x18\x18\x18\x18\x00\x00" + "\x00\x24\x24\x24\x00\x24\x00\x00" + "\x00\x7e\x7e\x3e\x1e\x1e\x00\x00" + "\x00\x20\x30\x28\x28\x18\x08\x38" + "\x00\x00\x00\x00\x00\x7c\x38\x00" + "\x00\x18\x18\x18\x18\x18\x18\x00" + "\x00\x18\x18\x18\x18\x18\x00\x00" + "\x00\x18\x18\x18\x18\x18\x00\x00" + "\x00\x00\x08\x3c\x08\x00\x00\x00" + "\x00\x00\x20\x38\x30\x00\x00\x00" + "\x00\x00\x00\x60\x60\x00\x00\x00" + "\x00\x00\x28\x3c\x28\x00\x00\x00" + "\x00\x00\x18\x38\x3c\x7c\x00\x00" + "\x00\x7c\x3c\x38\x18\x10\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x18\x18\x18\x00\x10\x00\x00" + "\x24\x24\x00\x00\x00\x00\x00\x00" + "\x00\x38\x3c\x28\x3c\x38\x00\x00" + "\x18\x38\x60\x38\x04\x38\x18\x00" + "\x00\x00\x44\x08\x10\x24\x00\x00" + "\x00\x38\x38\x3c\x68\x68\x00\x00" + "\x10\x30\x00\x00\x00\x00\x00\x00" + "\x00\x18\x10\x10\x10\x18\x00\x00" + "\x00\x18\x08\x08\x08\x18\x00\x00" + "\x00\x00\x38\x3c\x3c\x00\x00\x00" + "\x00\x00\x18\x38\x18\x00\x00\x00" + "\x00\x00\x00\x00\x00\x18\x10\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x10\x00\x00" + "\x00\x04\x08\x10\x20\x00\x00\x00" + "\x00\x28\x64\x64\x64\x28\x00\x00" + "\x00\x18\x18\x18\x18\x18\x00\x00" + "\x00\x0c\x0c\x18\x30\x64\x00\x00" + "\x00\x0c\x04\x1c\x04\x2c\x00\x00" + "\x00\x18\x38\x68\x1c\x08\x00\x00" + "\x00\x60\x60\x78\x04\x2c\x00\x00" + "\x00\x20\x60\x78\x64\x6c\x00\x00" + "\x00\x6c\x0c\x18\x10\x10\x00\x00" + "\x00\x6c\x64\x3c\x64\x6c\x00\x00" + "\x00\x6c\x64\x3c\x04\x08\x00\x00" + "\x00\x10\x00\x00\x00\x10\x00\x00" + "\x00\x10\x00\x00\x00\x10\x00\x00" + "\x00\x18\x30\x20\x30\x18\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x10\x08\x0c\x08\x10\x00\x00" + "\x00\x6c\x0c\x18\x00\x10\x00\x00" + "\x00\x6c\x6c\x7c\x7c\x60\x00\x00" + "\x00\x18\x2c\x6c\x6c\x64\x00\x00" + "\x00\x2c\x24\x3c\x24\x2c\x00\x00" + "\x00\x24\x60\x60\x60\x24\x00\x00" + "\x00\x38\x24\x24\x24\x38\x00\x00" + "\x00\x24\x20\x38\x20\x24\x00\x00" + "\x00\x24\x20\x38\x20\x20\x00\x00" + "\x00\x24\x60\x60\x6c\x24\x00\x00" + "\x00\x64\x64\x7c\x64\x64\x00\x00" + "\x00\x18\x18\x18\x18\x18\x00\x00" + "\x00\x08\x08\x08\x08\x68\x00\x00" + "\x00\x2c\x28\x38\x28\x2c\x00\x00" + "\x00\x20\x20\x20\x20\x24\x00\x00" + "\x00\x6c\x7c\x7c\x64\x64\x00\x00" + "\x00\x64\x7c\x7c\x6c\x64\x00\x00" + "\x00\x28\x64\x64\x64\x28\x00\x00" + "\x00\x2c\x24\x38\x20\x20\x00\x00" + "\x00\x6c\x64\x64\x7c\x38\x0c\x00" + "\x00\x2c\x24\x38\x2c\x24\x00\x00" + "\x00\x6c\x20\x18\x0c\x6c\x00\x00" + "\x00\x3c\x18\x18\x18\x18\x00\x00" + "\x00\x64\x64\x64\x64\x6c\x00\x00" + "\x00\x64\x64\x64\x2c\x18\x00\x00" + "\x00\x64\x64\x6c\x7c\x38\x00\x00" + "\x00\x6c\x38\x18\x38\x6c\x00\x00" + "\x00\x24\x24\x18\x18\x18\x00\x00" + "\x00\x6c\x08\x10\x20\x64\x00\x00" + "\x00\x10\x10\x10\x10\x10\x00\x00" + "\x00\x60\x30\x18\x0c\x04\x00\x00" + "\x00\x08\x08\x08\x08\x08\x00\x00" + "\x10\x28\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x3c" + "\x10\x10\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x18\x38\x68\x00\x00" + "\x00\x20\x30\x38\x24\x2c\x00\x00" + "\x00\x00\x00\x60\x60\x64\x00\x00" + "\x00\x08\x18\x38\x68\x68\x00\x00" + "\x00\x00\x00\x6c\x60\x64\x00\x00" + "\x00\x38\x20\x30\x20\x20\x00\x00" + "\x00\x00\x00\x68\x68\x38\x08\x38" + "\x00\x20\x20\x3c\x24\x24\x00\x00" + "\x00\x10\x10\x18\x18\x18\x00\x00" + "\x00\x04\x00\x0c\x04\x04\x24\x18" + "\x00\x20\x20\x38\x38\x2c\x00\x00" + "\x00\x18\x18\x18\x18\x18\x00\x00" + "\x00\x00\x00\x7c\x7c\x6c\x00\x00" + "\x00\x00\x00\x2c\x24\x24\x00\x00" + "\x00\x00\x00\x6c\x64\x6c\x00\x00" + "\x00\x00\x00\x2c\x24\x38\x20\x30" + "\x00\x00\x00\x68\x68\x38\x08\x0c" + "\x00\x00\x00\x3c\x20\x20\x00\x00" + "\x00\x00\x00\x20\x18\x2c\x00\x00" + "\x00\x10\x30\x30\x10\x1c\x00\x00" + "\x00\x00\x00\x68\x68\x68\x00\x00" + "\x00\x00\x00\x24\x24\x18\x00\x00" + "\x00\x00\x00\x64\x7c\x7c\x00\x00" + "\x00\x00\x00\x28\x18\x28\x00\x00" + "\x00\x00\x00\x64\x64\x3c\x0c\x38" + "\x00\x00\x00\x68\x10\x34\x00\x00" + "\x00\x18\x18\x30\x18\x18\x00\x00" + "\x00\x18\x18\x00\x18\x18\x00\x00" + "\x00\x10\x18\x08\x18\x10\x00\x00" + "\x00\x38\x00\x00\x00\x00\x00\x00" + "\x00\x00\x10\x28\x64\x7c\x00\x00" + "\x00\x24\x60\x60\x24\x18\x0c\x38" + "\x00\x48\x00\x68\x68\x68\x00\x00" + "\x08\x10\x00\x6c\x60\x64\x00\x00" + "\x10\x28\x00\x18\x38\x68\x00\x00" + "\x00\x48\x00\x18\x38\x68\x00\x00" + "\x30\x10\x00\x18\x38\x68\x00\x00" + "\x38\x18\x10\x18\x38\x68\x00\x00" + "\x00\x00\x38\x20\x38\x08\x08\x00" + "\x10\x28\x08\x6c\x60\x64\x00\x00" + "\x00\x48\x08\x6c\x60\x64\x00\x00" + "\x30\x10\x00\x6c\x60\x64\x00\x00" + "\x00\x24\x00\x18\x18\x18\x00\x00" + "\x18\x24\x00\x18\x18\x18\x00\x00" + "\x30\x10\x10\x18\x18\x18\x00\x00" + "\x64\x10\x38\x6c\x6c\x6c\x00\x00" + "\x38\x38\x38\x6c\x6c\x6c\x00\x00" + "\x10\x30\x3c\x20\x30\x24\x00\x00" + "\x00\x00\x2c\x3c\x38\x78\x00\x00" + "\x00\x28\x68\x7c\x68\x68\x00\x00" + "\x10\x28\x08\x6c\x64\x6c\x00\x00" + "\x00\x44\x00\x6c\x64\x6c\x00\x00" + "\x30\x10\x00\x6c\x64\x6c\x00\x00" + "\x30\x28\x00\x68\x68\x68\x00\x00" + "\x30\x10\x00\x68\x68\x68\x00\x00" + "\x00\x44\x00\x64\x64\x3c\x0c\x38" + "\x64\x38\x2c\x64\x64\x28\x00\x00" + "\x64\x00\x64\x64\x64\x6c\x00\x00" + "\x18\x18\x20\x20\x38\x18\x00\x00" + "\x38\x20\x30\x20\x20\x64\x00\x00" + "\x00\x2c\x18\x38\x18\x18\x00\x00" + "\x78\x68\x68\x68\x6c\x68\x00\x00" + "\x0c\x18\x18\x18\x18\x18\x30\x00" + "\x10\x20\x00\x18\x38\x68\x00\x00" + "\x08\x10\x10\x18\x18\x18\x00\x00" + "\x10\x20\x00\x6c\x64\x6c\x00\x00" + "\x10\x20\x00\x68\x68\x68\x00\x00" + "\x00\x38\x08\x2c\x24\x24\x00\x00" + "\x38\x00\x64\x7c\x6c\x6c\x00\x00" + "\x38\x38\x18\x18\x00\x00\x00\x00" + "\x38\x38\x10\x18\x00\x00\x00\x00" + "\x00\x10\x00\x30\x20\x6c\x00\x00" + "\x00\x00\x00\x60\x60\x40\x00\x00" + "\x00\x00\x00\x0c\x04\x04\x00\x00" + "\x00\x64\x68\x30\x20\x0c\x08\x1c" + "\x00\x64\x68\x30\x2c\x1c\x0c\x04" + "\x00\x10\x00\x18\x18\x18\x00\x00" + "\x00\x00\x38\x38\x38\x00\x00\x00" + "\x00\x00\x38\x3c\x38\x00\x00\x00" + "\xaa\x00\xaa\x00\xaa\x00\xaa\x00" + "\xaa\x55\xaa\x55\xaa\x55\xaa\x55" + "\x55\xff\x55\xff\x55\xff\x55\xff" + "\x10\x10\x10\x10\x10\x10\x10\x10" + "\x01\x01\x01\x01\xff\x01\x01\x01" + "\x01\x01\xff\x01\x01\xff\x01\x01" + "\x03\x03\x03\x03\xff\x03\x03\x03" + "\xff\xff\x01\x01\x01\x01\x01\x01" + "\xff\xff\x10\x10\x10\x10\x10\x10" + "\x03\x03\xff\x03\x03\xff\x03\x03" + "\x24\x24\x24\x24\x24\x24\x24\x24" + "\x3f\x3f\x24\x24\x24\x24\x24\x24" + "\x24\x24\x24\x24\x24\x24\x3f\x3f" + "\x01\x01\x01\x01\x01\x01\xff\xff" + "\x80\x80\x80\x80\x80\x80\xff\xff" + "\xf0\x10\x10\x10\x10\x10\x10\x10" + "\x10\x10\x10\x10\x10\x10\x10\x1f" + "\x10\x10\x10\x10\x10\x10\x10\xff" + "\xff\x10\x10\x10\x10\x10\x10\x10" + "\x80\x80\x80\x80\xff\x80\x80\x80" + "\x00\x00\x00\x00\xff\x00\x00\x00" + "\x10\x10\x10\x10\xff\x10\x10\x10" + "\x80\x80\xff\x80\x80\xff\x80\x80" + "\xc0\xc0\xc0\xc0\xff\xc0\xc0\xc0" + "\x24\x24\x24\x24\x24\x24\xfc\xfc" + "\xfc\xfc\x24\x24\x24\x24\x24\x24" + "\x24\x24\x24\x24\x24\x24\xff\xff" + "\xff\xff\x24\x24\x24\x24\x24\x24" + "\xc0\xc0\xff\xc0\xc0\xff\xc0\xc0" + "\x00\x00\xff\x00\x00\xff\x00\x00" + "\x24\x24\xff\x24\x24\xff\x24\x24" + "\x10\x10\x10\x10\x10\x10\xff\xff" + "\x24\x24\x24\x24\x24\x24\x24\xff" + "\xff\xff\x10\x10\x10\x10\x10\x10" + "\xff\x24\x24\x24\x24\x24\x24\x24" + "\x03\x03\x03\x03\x03\x03\x03\xff" + "\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xff" + "\xff\xff\x80\x80\x80\x80\x80\x80" + "\xff\xc0\xc0\xc0\xc0\xc0\xc0\xc0" + "\x24\x24\xff\x24\x24\xff\x24\x24" + "\x10\x10\xff\x10\x10\xff\x10\x10" + "\x10\x10\x10\x10\x10\x10\x10\xf0" + "\x1f\x10\x10\x10\x10\x10\x10\x10" + "\xff\xff\xff\xff\xff\xff\xff\xff" + "\x00\x00\x00\x00\xff\xff\xff\xff" + "\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0" + "\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f" + "\xff\xff\xff\xff\x00\x00\x00\x00" + "\x00\x00\x00\x78\x78\x78\x00\x00" + "\x00\x00\x28\x7c\x64\x78\x60\x00" + "\x00\x6c\x60\x60\x60\x60\x00\x00" + "\x00\x00\x38\x28\x28\x28\x00\x00" + "\x00\x64\x30\x10\x30\x64\x00\x00" + "\x00\x00\x00\x78\x78\x70\x00\x00" + "\x00\x00\x24\x24\x3c\x20\x20\x00" + "\x00\x00\x38\x18\x18\x18\x00\x00" + "\x00\x18\x3c\x24\x3c\x18\x00\x00" + "\x00\x28\x64\x7c\x64\x28\x00\x00" + "\x00\x28\x64\x6c\x28\x28\x00\x00" + "\x00\x10\x18\x1c\x24\x2c\x00\x00" + "\x00\x00\x00\x7c\x3c\x00\x00\x00" + "\x00\x04\x3c\x76\x3c\x20\x00\x00" + "\x00\x10\x20\x38\x20\x10\x00\x00" + "\x00\x28\x64\x64\x64\x64\x00\x00" + "\x00\x00\x00\x38\x00\x38\x00\x00" + "\x00\x10\x18\x18\x00\x00\x00\x00" + "\x00\x18\x08\x08\x10\x00\x00\x00" + "\x00\x18\x30\x10\x08\x00\x00\x00" + "\x00\x1c\x18\x18\x18\x18\x18\x18" + "\x18\x18\x18\x18\x18\x70\x00\x00" + "\x00\x10\x00\x18\x00\x10\x00\x00" + "\x00\x00\x38\x00\x38\x00\x00\x00" + "\x38\x38\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x10\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00" + "\x0c\x08\x08\x08\x28\x18\x00\x00" + "\x38\x28\x28\x28\x00\x00\x00\x00" + "\x30\x30\x20\x70\x00\x00\x00\x00" + "\x00\x00\x38\x38\x38\x38\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00" + , NULL, "SyncTERM Menu", CIOLIB_CP437, true} + ,{"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x7e\x81\xa5\x81\x81\xbd\x99\x81\x7e\x00\x00\x00\x00" + "\x00\x00\x00\x7e\xff\xdb\xff\xff\xc3\xe7\xff\x7e\x00\x00\x00\x00" + "\x00\x00\x00\x00\x6c\xfe\xfe\xfe\xfe\x7c\x38\x10\x00\x00\x00\x00" + "\x00\x00\x00\x00\x10\x38\x7c\xfe\x7c\x38\x10\x00\x00\x00\x00\x00" + "\x00\x00\x00\x18\x3c\x3c\xe7\xe7\xe7\x18\x18\x7e\x00\x00\x00\x00" + "\x00\x00\x00\x18\x3c\x7e\xff\xff\x7e\x18\x18\x7e\x00\x00\x00\x00" + "\x00\x00\x60\x30\x10\x78\xcc\xcc\xcc\xcc\xfc\x30\x00\x00\x00\x00" + "\x00\x00\xff\xff\xff\xff\xe7\xc3\xc3\xe7\xff\xff\xff\xff\x00\x00" + "\x00\x00\x00\x00\x00\x3c\x66\x42\x42\x66\x3c\x00\x00\x00\x00\x00" + "\x00\x00\xff\xff\xff\xc3\x99\xbd\xbd\x99\xc3\xff\xff\xff\x00\x00" + "\x00\x00\x00\x3e\x0e\x1a\x32\x78\xcc\xcc\xcc\x78\x00\x00\x00\x00" + "\x00\x00\x00\x3c\x66\x66\x66\x3c\x18\x7e\x18\x18\x00\x00\x00\x00" + "\x00\x00\x00\x3f\x33\x3f\x30\x30\x30\x70\xf0\xe0\x00\x00\x00\x00" + "\x00\x00\x00\x7f\x63\x7f\x63\x63\x63\x67\xe7\xe6\xc0\x00\x00\x00" + "\x00\x00\x00\x18\x18\xdb\x3c\xe7\x3c\xdb\x18\x18\x00\x00\x00\x00" + "\x00\x00\x00\x80\xc0\xe0\xf8\xfe\xf8\xe0\xc0\x80\x00\x00\x00\x00" + "\x00\x00\x00\x02\x06\x0e\x3e\xfe\x3e\x0e\x06\x02\x00\x00\x00\x00" + "\x00\x00\x00\x18\x3c\x7e\x18\x18\x18\x7e\x3c\x18\x00\x00\x00\x00" + "\x00\x00\x00\x66\x66\x66\x66\x66\x66\x00\x66\x66\x00\x00\x00\x00" + "\x00\x2c\x3c\x3c\x3c\x3c\x3c\xfc\x3c\x3c\x3c\x3c\x3c\x3c\x2c\x00" + "\x00\x00\x00\x38\x78\x38\x00\x78\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfe\xfe\xfe\x00\x00\x00\x00" + "\x00\x00\x00\x18\x3c\x7e\x18\x18\x18\x7e\x3c\x18\x7e\x00\x00\x00" + "\x00\x00\x00\x18\x3c\x7e\x18\x18\x18\x18\x18\x18\x00\x00\x00\x00" + "\x00\x00\x00\x18\x18\x18\x18\x18\x18\x7e\x3c\x18\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x18\x0c\xfe\x0c\x18\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x30\x60\xfe\x60\x30\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\xc0\xc0\xc0\xfe\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x28\x6c\xfe\x6c\x28\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x10\x38\x38\x7c\x7c\xfe\xfe\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\xfe\xfe\x7c\x7c\x38\x38\x10\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x38\x38\x38\x38\x10\x10\x00\x10\x00\x00\x00\x00\x00" + "\x00\x00\x6c\x6c\x6c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x78\xfc\x78\x78\x78\xfc\x78\x00\x00\x00\x00\x00" + "\x00\x10\x38\x78\xc4\xc0\xd8\x0c\x0c\x8c\xfc\x38\x10\x00\x00\x00" + "\x00\x00\x00\x00\x80\xc4\x08\x10\x20\x40\x8c\x00\x00\x00\x00\x00" + "\x00\x00\x00\x38\x78\x38\x7c\xd8\xd8\xd8\xfc\x20\x00\x00\x00\x00" + "\x00\x00\x20\x30\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x18\x30\x30\x30\x30\x30\x30\x18\x00\x00\x00\x00\x00" + "\x00\x00\x00\x30\x18\x18\x18\x18\x18\x18\x30\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x44\x7c\xfe\x38\x44\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x10\x10\x7c\x10\x10\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x10\x30\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\xfc\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x04\x08\x10\x20\x40\x80\x00\x00\x00\x00\x00" + "\x00\x00\x00\x38\xcc\xcc\xcc\xcc\xcc\xcc\x78\x00\x00\x00\x00\x00" + "\x00\x00\x00\x30\x70\x30\x10\x10\x10\x10\x38\x38\x00\x00\x00\x00" + "\x00\x00\x00\x78\x0c\x0c\x18\x20\x40\xc0\xfc\xf8\x00\x00\x00\x00" + "\x00\x00\x00\x78\x0c\x0c\x3c\x0c\x0c\x8c\xfc\x30\x00\x00\x00\x00" + "\x00\x00\x00\x18\x38\x78\xd8\xfc\x18\x18\x1c\x08\x00\x00\x00\x00" + "\x00\x00\x00\xfc\xc0\xc0\xf8\x0c\x0c\x8c\xfc\x30\x00\x00\x00\x00" + "\x00\x00\x00\x30\xc0\xc0\xf8\xcc\xcc\xcc\xfc\x30\x00\x00\x00\x00" + "\x00\x00\x00\xfc\x8c\x0c\x08\x10\x30\x30\x30\x00\x00\x00\x00\x00" + "\x00\x00\x00\x78\xcc\xcc\xfc\xcc\xcc\xcc\xfc\x30\x00\x00\x00\x00" + "\x00\x00\x00\x78\xcc\xcc\x7c\x0c\x0c\x0c\x38\x20\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x10\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x10\x00\x00\x00\x10\x30\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x0c\x18\x30\x60\x30\x18\x0c\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x7c\x00\x00\x7c\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x60\x30\x18\x0c\x18\x30\x60\x00\x00\x00\x00\x00" + "\x00\x00\x00\x78\xcc\x0c\x18\x10\x10\x00\x10\x00\x00\x00\x00\x00" + "\x00\x00\x00\x30\xfc\xcc\xdc\xdc\xdc\xd8\xf8\x30\x00\x00\x00\x00" + "\x00\x00\x00\x30\x78\xcc\xcc\xfc\xcc\xcc\xcc\x80\x00\x00\x00\x00" + "\x00\x00\x00\xf8\x6c\x6c\x78\x6c\x6c\x6c\xfc\xf0\x00\x00\x00\x00" + "\x00\x00\x00\x38\xc4\xc0\xc0\xc0\xc0\xc4\x7c\x10\x00\x00\x00\x00" + "\x00\x00\x00\xf8\x6c\x6c\x6c\x6c\x6c\x6c\xf8\xe0\x00\x00\x00\x00" + "\x00\x00\x00\xfc\x64\x60\x70\x70\x60\x64\xfc\xf8\x00\x00\x00\x00" + "\x00\x00\x00\xfc\x64\x60\x70\x70\x60\x60\xe0\xe0\x00\x00\x00\x00" + "\x00\x00\x00\x38\xc4\xc0\xc0\xdc\xcc\xcc\x7c\x00\x00\x00\x00\x00" + "\x00\x00\x00\xcc\xcc\xcc\xfc\xcc\xcc\xcc\xcc\x80\x00\x00\x00\x00" + "\x00\x00\x00\x38\x10\x10\x10\x10\x10\x10\x38\x10\x00\x00\x00\x00" + "\x00\x00\x00\x1c\x18\x18\x18\x18\xd8\xd8\xf8\x20\x00\x00\x00\x00" + "\x00\x00\x00\xec\x6c\x6c\x78\x70\x68\x6c\xec\xc0\x00\x00\x00\x00" + "\x00\x00\x00\xe0\x60\x60\x60\x60\x60\x64\xfc\xf8\x00\x00\x00\x00" + "\x00\x00\x00\xcc\xfc\xfc\xfc\xcc\xcc\xcc\xcc\x80\x00\x00\x00\x00" + "\x00\x00\x00\xcc\xec\xfc\xfc\xdc\xcc\xcc\xcc\x80\x00\x00\x00\x00" + "\x00\x00\x00\x78\xcc\xcc\xcc\xcc\xcc\xcc\xfc\x30\x00\x00\x00\x00" + "\x00\x00\x00\xf8\x6c\x6c\x78\x60\x60\x60\xe0\xe0\x00\x00\x00\x00" + "\x00\x00\x00\x78\xcc\xcc\xcc\xcc\xcc\xdc\xfc\x38\x0c\x00\x00\x00" + "\x00\x00\x00\xf8\x6c\x6c\x78\x78\x6c\x6c\xec\xc0\x00\x00\x00\x00" + "\x00\x00\x00\xf8\xcc\x40\x30\x18\x0c\xcc\xcc\x00\x00\x00\x00\x00" + "\x00\x00\x00\x7c\x7c\x10\x10\x10\x10\x10\x38\x10\x00\x00\x00\x00" + "\x00\x00\x00\xcc\xcc\xcc\xcc\xcc\xcc\xcc\xfc\x30\x00\x00\x00\x00" + "\x00\x00\x00\xcc\xcc\xcc\xcc\xcc\xcc\x78\x30\x00\x00\x00\x00\x00" + "\x00\x00\x00\xcc\xcc\xcc\xcc\xdc\xfc\xfc\xfc\x00\x00\x00\x00\x00" + "\x00\x00\x00\xcc\xcc\x78\x38\x30\x78\x48\xcc\x80\x00\x00\x00\x00" + "\x00\x00\x00\x6c\x6c\x6c\x38\x38\x10\x10\x38\x10\x00\x00\x00\x00" + "\x00\x00\x00\xfc\x8c\x0c\x18\x20\x40\xc4\xfc\xf8\x00\x00\x00\x00" + "\x00\x00\x00\x38\x30\x30\x30\x30\x30\x30\x30\x10\x00\x00\x00\x00" + "\x00\x00\x00\x00\x80\xc0\x60\x30\x18\x0c\x04\x00\x00\x00\x00\x00" + "\x00\x00\x00\x38\x18\x18\x18\x18\x18\x18\x18\x10\x00\x00\x00\x00" + "\x00\x30\x38\xcc\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfe\x00\x00\x00" + "\x00\x00\x30\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x70\x78\x78\xd8\xd8\xfc\x20\x00\x00\x00\x00" + "\x00\x00\x00\xe0\x60\x70\x78\x6c\x6c\x6c\x7c\x30\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x78\xcc\xc0\xc0\xc0\xcc\x00\x00\x00\x00\x00" + "\x00\x00\x00\x18\x18\x38\x78\xd8\xd8\xd8\xfc\x20\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x78\xcc\xfc\xc0\xc0\xcc\x00\x00\x00\x00\x00" + "\x00\x00\x00\x38\x34\x30\x70\x30\x30\x30\x70\x20\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x64\xd8\xd8\xd8\xd8\xf8\x38\xd8\x78\x00\x00" + "\x00\x00\x00\xe0\x60\x68\x7c\x6c\x6c\x6c\xec\xc0\x00\x00\x00\x00" + "\x00\x00\x00\x10\x10\x30\x30\x10\x10\x10\x38\x10\x00\x00\x00\x00" + "\x00\x00\x00\x0c\x00\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x6c\x38\x00\x00" + "\x00\x00\x00\xe0\x60\x64\x68\x70\x78\x68\xec\xc0\x00\x00\x00\x00" + "\x00\x00\x00\x30\x10\x10\x10\x10\x10\x10\x38\x10\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\xc8\xfc\xdc\xdc\xdc\xcc\x80\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\xd8\x6c\x6c\x6c\x6c\x6c\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x78\xcc\xcc\xcc\xcc\xfc\x30\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\xd8\x6c\x6c\x6c\x6c\x7c\x70\x60\xe0\x00\x00" + "\x00\x00\x00\x00\x00\x64\xd8\xd8\xd8\xd8\xf8\x38\x18\x1c\x00\x00" + "\x00\x00\x00\x00\x00\xd8\x7c\x6c\x60\x60\xe0\xe0\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x78\xcc\x60\x38\x8c\xfc\x30\x00\x00\x00\x00" + "\x00\x00\x00\x20\x30\xf8\x30\x30\x30\x30\x3c\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\xc8\xd8\xd8\xd8\xd8\xfc\x20\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\xc4\xcc\xcc\xcc\xcc\x78\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\xc4\xcc\xcc\xdc\xfc\xfc\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\xc4\x48\x30\x30\x38\xcc\x80\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\xc4\xcc\xcc\xcc\xcc\xfc\x3c\x0c\xf8\x00\x00" + "\x00\x00\x00\x00\x00\xfc\xd8\x10\x20\x40\xfc\xf8\x00\x00\x00\x00" + "\x00\x00\x00\x1c\x10\x10\x70\x30\x10\x10\x18\x08\x00\x00\x00\x00" + "\x00\x00\x00\x10\x10\x10\x10\x10\x10\x10\x10\x00\x00\x00\x00\x00" + "\x00\x00\x00\x70\x10\x10\x1c\x18\x10\x10\x30\x20\x00\x00\x00\x00" + "\x00\x00\x7c\xd8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x10\x38\x6c\xc6\xc6\xfe\x00\x00\x00\x00\x00" + "\x00\x2c\x3c\x3c\x3c\x3c\x3c\x3f\x3c\x3c\x3c\x3c\x3c\x3c\x2c\x00" + "\x00\x00\x78\x3c\x3c\x3c\x2c\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x38\xcc\xcc\xfc\xcc\xcc\xcc\x78\x00\x00\x00\x00\x00" + "\x00\x00\x00\xfc\xcc\xc0\xc0\xc0\xc0\xc0\xc0\x80\x00\x00\x00\x00" + "\x00\x00\x00\xfc\xc0\x60\x30\x10\x20\x40\xfc\xf8\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x64\xf8\xd0\xd0\xd8\xfc\x20\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x7c\xf8\xd0\xd0\xd0\xf0\x20\x00\x00\x00\x00" + "\x00\x00\x00\x00\x64\xf8\x18\x10\x10\x10\x10\x00\x00\x00\x00\x00" + "\x00\x00\x00\x38\xcc\xcc\xcc\x48\x78\x78\xfc\xc8\x00\x00\x00\x00" + "\x00\x00\x00\x3c\x30\x18\x3c\x6c\x6c\x6c\x7c\x10\x00\x00\x00\x00" + "\x00\x00\x00\x7c\x38\x6c\x6c\x6c\x6c\x38\x38\x38\x00\x00\x00\x00" + "\x00\x00\x00\x30\xfc\xcc\xcc\xcc\xcc\xcc\xcc\x80\x00\x00\x00\x00" + "\x00\x00\x00\x38\x60\x60\x78\x60\x60\x60\x30\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x7c\xff\xd7\xff\x7c\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x10\x10\x10\x10\x10\x10\xff\x10\x10\x10\x10\x10\x10\x10\x00" + "\x00\x00\x00\x00\x00\x3f\x30\x3f\x3c\x3c\x3c\x3c\x3c\x3c\x2c\x00" + "\x00\x00\x00\x00\x00\x44\x6c\x6c\x6c\x6c\x7c\x70\x60\xc0\x00\x00" + "\x00\x10\x10\x10\x10\x1f\x18\x1f\x10\x10\x10\x10\x10\x10\x10\x00" + "\x00\x00\x00\x1c\x16\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x00" + "\x00\x00\x00\x00\x00\x10\x00\x7c\x00\x10\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x30\x18\x0c\x08\x30\x20\x38\x38\x00\x00\x00\x00" + "\x00\x00\x0e\x18\x18\x18\x18\xf8\x78\x78\x38\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x10\x10\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x3f\x3c\x3c\x3c\x3c\x3c\x3c\x2c\x00" + "\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\xff\xff\xff\xff\x00" + "\x00\x00\x18\x18\x3c\x66\x60\x60\x66\x3c\x18\x18\x00\x00\x00\x00" + "\x00\x00\x38\x6c\x64\x60\xf0\x60\x60\x60\xe6\xfc\x00\x00\x00\x00" + "\x00\x00\x00\x66\x66\x3c\x18\x7e\x18\x7e\x18\x18\x00\x00\x00\x00" + "\x00\x00\xf8\xcc\xcc\xf8\xc4\xcc\xde\xcc\xcc\xc6\x00\x00\x00\x00" + "\x00\x00\x30\x78\x00\x70\x78\x78\xd8\xd8\xfc\x20\x00\x00\x00\x00" + "\x00\x00\x00\x78\xd8\xd8\xd8\xd8\xcc\xcc\xcc\x80\x00\x00\x00\x00" + "\x00\x00\x00\x02\x06\x7c\xff\xd7\xf7\x7c\xc0\x80\x00\x00\x00\x00" + "\x00\x00\x00\x00\x18\x30\x60\x20\x18\x08\x38\x38\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x10\x7c\x38\x10\x00\x38\x38\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\xff\x00\xff\x10\x10\x10\x10\x10\x10\x10\x00" + "\x00\x00\x00\x00\x00\x00\xfc\x0c\x0c\x0c\x00\x00\x00\x00\x00\x00" + "\x00\x2c\x3c\x3c\x3c\x3c\x3c\x3c\x3c\x3c\x3c\x3c\x3c\x3c\x2c\x00" + "\x00\x00\x00\x30\x30\x00\x30\x30\x60\xc6\xc6\x7c\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\xfe\xc0\xc0\xc0\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\xfe\x06\x06\x06\x00\x00\x00\x00\x00" + "\x00\x2c\x3c\x3c\x3c\x3c\x3c\xfc\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x2c\x3c\x3c\x3c\xfc\x0c\xfc\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x18\x30\x20\x30\x30\x10\x10\x10\x38\x10\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x36\x6c\xd8\x6c\x36\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\xd8\x6c\x36\x6c\xd8\x00\x00\x00\x00\x00\x00" + "\xaa\x00\xaa\x00\xaa\x00\xaa\x00\xaa\x00\xaa\x00\xaa\x00\xaa\x00" + "\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55" + "\x55\xff\x55\xff\x55\xff\x55\xff\x55\xff\x55\xff\x55\xff\x55\xff" + "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\x01\x01\x01\x01\x01\x01\x01\x01\xff\x01\x01\x01\x01\x01\x01\x01" + "\x01\x01\x01\x01\x01\x01\xff\x01\x01\xff\x01\x01\x01\x01\x01\x01" + "\x03\x03\x03\x03\x03\x03\x03\x03\xff\x03\x03\x03\x03\x03\x03\x03" + "\xff\xff\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01" + "\xff\xff\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\x03\x03\x03\x03\x03\x03\xff\x03\x03\xff\x03\x03\x03\x03\x03\x03" + "\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24" + "\x3f\x3f\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24" + "\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x3f\x3f" + "\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\xff\xff" + "\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\xff\xff" + "\xf0\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x1f" + "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\xff" + "\xff\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\x80\x80\x80\x80\x80\x80\x80\x80\xff\x80\x80\x80\x80\x80\x80\x80" + "\x00\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00" + "\x10\x10\x10\x10\x10\x10\x10\x10\xff\x10\x10\x10\x10\x10\x10\x10" + "\x80\x80\x80\x80\x80\x80\xff\x80\x80\xff\x80\x80\x80\x80\x80\x80" + "\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xff\xc0\xc0\xc0\xc0\xc0\xc0\xc0" + "\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\xfc\xfc" + "\xfc\xfc\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24" + "\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\xff\xff" + "\xff\xff\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24" + "\xc0\xc0\xc0\xc0\xc0\xc0\xff\xc0\xc0\xff\xc0\xc0\xc0\xc0\xc0\xc0" + "\x00\x00\x00\x00\x00\x00\xff\x00\x00\xff\x00\x00\x00\x00\x00\x00" + "\x24\x24\x24\x24\x24\x24\xff\x24\x24\xff\x24\x24\x24\x24\x24\x24" + "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\xff\xff" + "\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\xff" + "\xff\xff\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\xff\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24" + "\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\xff" + "\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xff" + "\xff\xff\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80" + "\xff\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0" + "\x24\x24\x24\x24\x24\x24\xff\x24\x24\xff\x24\x24\x24\x24\x24\x24" + "\x10\x10\x10\x10\x10\x10\xff\x10\x10\xff\x10\x10\x10\x10\x10\x10" + "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\xf0" + "\x1f\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" + "\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\xff\xff\xff\xff" + "\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0" + "\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f" + "\xff\xff\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x76\xdc\xd8\xd8\xdc\x76\x00\x00\x00\x00" + "\x00\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\xfe\xc6\xc6\xc0\xc0\xc0\xc0\xc0\xc0\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\xfe\x6c\x6c\x6c\x6c\x6c\x6c\x00\x00\x00\x00" + "\x00\x00\x00\xfe\xc6\x60\x30\x18\x30\x60\xc6\xfe\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x7e\xd8\xd8\xd8\xd8\x70\x00\x00\x00\x00" + "\x00\x10\x10\x10\x10\xf0\x30\xf0\x10\x10\x10\x10\x10\x10\x10\x00" + "\x00\x00\x00\x00\x00\x76\xdc\x18\x18\x18\x18\x18\x00\x00\x00\x00" + "\x00\x00\x00\x7e\x18\x3c\x66\x66\x66\x3c\x18\x7e\x00\x00\x00\x00" + "\x00\x00\x00\x38\x6c\xc6\xc6\xfe\xc6\xc6\x6c\x38\x00\x00\x00\x00" + "\x00\x00\x00\x38\x6c\xc6\xc6\xc6\x6c\x6c\x6c\xee\x00\x00\x00\x00" + "\x00\x00\x00\x1e\x30\x18\x0c\x3e\x66\x66\x66\x3c\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x7e\xdb\xdb\x7e\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x03\x06\x7e\xdb\xdb\xf3\x7e\x60\xc0\x00\x00\x00\x00" + "\x00\x00\x00\x1c\x30\x60\x60\x7c\x60\x60\x30\x1c\x00\x00\x00\x00" + "\x00\x00\x00\x00\x7c\xc6\xc6\xc6\xc6\xc6\xc6\xc6\x00\x00\x00\x00" + "\x00\x00\x00\x00\xfe\x00\x00\xfe\x00\x00\xfe\x00\x00\x00\x00\x00" + "\x00\x40\xb4\xa4\x58\xa4\x78\x58\x88\x88\x48\x48\xa4\x5a\x84\x00" + "\x00\x00\x00\x30\x18\x0c\x06\x0c\x18\x30\x00\x7e\x00\x00\x00\x00" + "\x00\x00\x00\x0c\x18\x30\x60\x30\x18\x0c\x00\x7e\x00\x00\x00\x00" + "\x00\x00\x00\x0e\x1b\x1b\x18\x18\x18\x18\x18\x18\x18\x18\x00\x00" + "\x00\x00\x18\x18\x18\x18\x18\x18\x18\xd8\xd8\x70\x00\x00\x00\x00" + "\x00\x00\x00\x00\x18\x18\x00\x7e\x00\x18\x18\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x76\xdc\x00\x76\xdc\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\xfc\x3c\x3c\x3c\x3c\x3c\x3c\x2c\x00" + "\x00\x00\x00\x00\x00\x00\x00\xfc\x3c\x3c\x3c\x3c\x3c\x3c\x2c\x00" + "\x00\x00\x0f\x0c\x0c\x0c\x0c\x0c\xec\x6c\x3c\x1c\x00\x00\x00\x00" + "\x00\x00\xd8\x6c\x6c\x6c\x6c\x6c\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\xda\xfe\xfe\x7e\x7e\xfe\xfe\xfe\xfe\xfe\xfe\x7e\xfe\x7e\x00" + "\x00\x00\x00\x00\x00\x7c\x7c\x7c\x7c\x7c\x7c\x00\x00\x00\x00\x00" + "\x00\x00\x30\x60\x00\x70\x78\x78\xd8\xd8\xfc\x20\x00\x00\x00\x00" + , "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x7e\x81\xa5\x81\x81\xbd\x99\x81\x7e\x00\x00\x00" + "\x00\x00\x7e\xff\xdb\xff\xff\xc3\xe7\xff\x7e\x00\x00\x00" + "\x00\x00\x00\x6c\xfe\xfe\xfe\xfe\x7c\x38\x10\x00\x00\x00" + "\x00\x00\x00\x10\x38\x7c\xfe\x7c\x38\x10\x00\x00\x00\x00" + "\x00\x00\x18\x3c\x3c\xe7\xe7\xe7\x18\x18\x7e\x00\x00\x00" + "\x00\x00\x18\x3c\x7e\xff\xff\x7e\x18\x18\x7e\x00\x00\x00" + "\x00\x60\x30\x10\x78\xcc\xcc\xcc\xcc\xfc\x30\x00\x00\x00" + "\x00\xff\xff\xff\xff\xe7\xc3\xc3\xe7\xff\xff\xff\xff\x00" + "\x00\x00\x00\x00\x3c\x66\x42\x42\x66\x3c\x00\x00\x00\x00" + "\x00\xff\xff\xff\xc3\x99\xbd\xbd\x99\xc3\xff\xff\xff\x00" + "\x00\x00\x3e\x0e\x1a\x32\x78\xcc\xcc\xcc\x78\x00\x00\x00" + "\x00\x00\x3c\x66\x66\x66\x3c\x18\x7e\x18\x18\x00\x00\x00" + "\x00\x00\x3f\x33\x3f\x30\x30\x30\x70\xf0\xe0\x00\x00\x00" + "\x00\x00\x7f\x63\x7f\x63\x63\x63\x67\xe7\xe6\xc0\x00\x00" + "\x00\x00\x18\x18\xdb\x3c\xe7\x3c\xdb\x18\x18\x00\x00\x00" + "\x00\x00\x80\xc0\xe0\xf8\xfe\xf8\xe0\xc0\x80\x00\x00\x00" + "\x00\x00\x02\x06\x0e\x3e\xfe\x3e\x0e\x06\x02\x00\x00\x00" + "\x00\x00\x18\x3c\x7e\x18\x18\x18\x7e\x3c\x18\x00\x00\x00" + "\x00\x00\x66\x66\x66\x66\x66\x66\x00\x66\x66\x00\x00\x00" + "\x3c\x3c\x3c\x3c\x3c\x3c\xfc\x3c\x3c\x3c\x3c\x3c\x3c\x3c" + "\x00\x00\x38\x78\x38\x00\x78\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\xfe\xfe\xfe\x00\x00\x00" + "\x00\x00\x18\x3c\x7e\x18\x18\x18\x7e\x3c\x18\x7e\x00\x00" + "\x00\x00\x18\x3c\x7e\x18\x18\x18\x18\x18\x18\x00\x00\x00" + "\x00\x00\x18\x18\x18\x18\x18\x18\x7e\x3c\x18\x00\x00\x00" + "\x00\x00\x00\x00\x18\x0c\xfe\x0c\x18\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x30\x60\xfe\x60\x30\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\xc0\xc0\xc0\xfe\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x28\x6c\xfe\x6c\x28\x00\x00\x00\x00\x00" + "\x00\x00\x00\x10\x38\x38\x7c\x7c\xfe\xfe\x00\x00\x00\x00" + "\x00\x00\x00\xfe\xfe\x7c\x7c\x38\x38\x10\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x38\x38\x38\x38\x10\x10\x00\x10\x00\x00\x00\x00" + "\x00\x6c\x6c\x6c\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x78\xfc\x78\x78\x78\xfc\x78\x00\x00\x00\x00" + "\x10\x38\x78\xc4\xc0\xd8\x0c\x0c\x8c\xfc\x38\x10\x00\x00" + "\x00\x00\x00\x80\xc4\x08\x10\x20\x40\x8c\x00\x00\x00\x00" + "\x00\x00\x38\x78\x38\x7c\xd8\xd8\xd8\xfc\x20\x00\x00\x00" + "\x00\x20\x30\x60\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x18\x30\x30\x30\x30\x30\x30\x18\x00\x00\x00\x00" + "\x00\x00\x30\x18\x18\x18\x18\x18\x18\x30\x00\x00\x00\x00" + "\x00\x00\x00\x00\x44\x7c\xfe\x38\x44\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x10\x10\x7c\x10\x10\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x10\x10\x30\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\xfc\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00" + "\x00\x00\x00\x00\x04\x08\x10\x20\x40\x80\x00\x00\x00\x00" + "\x00\x00\x38\xcc\xcc\xcc\xcc\xcc\xcc\x78\x00\x00\x00\x00" + "\x00\x00\x30\x70\x30\x10\x10\x10\x10\x38\x38\x00\x00\x00" + "\x00\x00\x78\x0c\x0c\x18\x20\x40\xc0\xfc\xf8\x00\x00\x00" + "\x00\x00\x78\x0c\x0c\x3c\x0c\x0c\x8c\xfc\x30\x00\x00\x00" + "\x00\x00\x18\x38\x78\xd8\xfc\x18\x18\x1c\x08\x00\x00\x00" + "\x00\x00\xfc\xc0\xc0\xf8\x0c\x0c\x8c\xfc\x30\x00\x00\x00" + "\x00\x00\x30\xc0\xc0\xf8\xcc\xcc\xcc\xfc\x30\x00\x00\x00" + "\x00\x00\xfc\x8c\x0c\x08\x10\x30\x30\x30\x00\x00\x00\x00" + "\x00\x00\x78\xcc\xcc\xfc\xcc\xcc\xcc\xfc\x30\x00\x00\x00" + "\x00\x00\x78\xcc\xcc\x7c\x0c\x0c\x0c\x38\x20\x00\x00\x00" + "\x00\x00\x00\x00\x10\x00\x00\x00\x10\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x10\x00\x00\x00\x10\x30\x00\x00\x00\x00" + "\x00\x00\x00\x0c\x18\x30\x60\x30\x18\x0c\x00\x00\x00\x00" + "\x00\x00\x00\x00\x7c\x00\x00\x7c\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x60\x30\x18\x0c\x18\x30\x60\x00\x00\x00\x00" + "\x00\x00\x78\xcc\x0c\x18\x10\x10\x00\x10\x00\x00\x00\x00" + "\x00\x00\x30\xfc\xcc\xdc\xdc\xdc\xd8\xf8\x30\x00\x00\x00" + "\x00\x00\x30\x78\xcc\xcc\xfc\xcc\xcc\xcc\x80\x00\x00\x00" + "\x00\x00\xf8\x6c\x6c\x78\x6c\x6c\x6c\xfc\xf0\x00\x00\x00" + "\x00\x00\x38\xc4\xc0\xc0\xc0\xc0\xc4\x7c\x10\x00\x00\x00" + "\x00\x00\xf8\x6c\x6c\x6c\x6c\x6c\x6c\xf8\xe0\x00\x00\x00" + "\x00\x00\xfc\x64\x60\x70\x70\x60\x64\xfc\xf8\x00\x00\x00" + "\x00\x00\xfc\x64\x60\x70\x70\x60\x60\xe0\xe0\x00\x00\x00" + "\x00\x00\x38\xc4\xc0\xc0\xdc\xcc\xcc\x7c\x00\x00\x00\x00" + "\x00\x00\xcc\xcc\xcc\xfc\xcc\xcc\xcc\xcc\x80\x00\x00\x00" + "\x00\x00\x38\x10\x10\x10\x10\x10\x10\x38\x10\x00\x00\x00" + "\x00\x00\x1c\x18\x18\x18\x18\xd8\xd8\xf8\x20\x00\x00\x00" + "\x00\x00\xec\x6c\x6c\x78\x70\x68\x6c\xec\xc0\x00\x00\x00" + "\x00\x00\xe0\x60\x60\x60\x60\x60\x64\xfc\xf8\x00\x00\x00" + "\x00\x00\xcc\xfc\xfc\xfc\xcc\xcc\xcc\xcc\x80\x00\x00\x00" + "\x00\x00\xcc\xec\xfc\xfc\xdc\xcc\xcc\xcc\x80\x00\x00\x00" + "\x00\x00\x78\xcc\xcc\xcc\xcc\xcc\xcc\xfc\x30\x00\x00\x00" + "\x00\x00\xf8\x6c\x6c\x78\x60\x60\x60\xe0\xe0\x00\x00\x00" + "\x00\x00\x78\xcc\xcc\xcc\xcc\xcc\xdc\xfc\x38\x0c\x00\x00" + "\x00\x00\xf8\x6c\x6c\x78\x78\x6c\x6c\xec\xc0\x00\x00\x00" + "\x00\x00\xf8\xcc\x40\x30\x18\x0c\xcc\xcc\x00\x00\x00\x00" + "\x00\x00\x7c\x7c\x10\x10\x10\x10\x10\x38\x10\x00\x00\x00" + "\x00\x00\xcc\xcc\xcc\xcc\xcc\xcc\xcc\xfc\x30\x00\x00\x00" + "\x00\x00\xcc\xcc\xcc\xcc\xcc\xcc\x78\x30\x00\x00\x00\x00" + "\x00\x00\xcc\xcc\xcc\xcc\xdc\xfc\xfc\xfc\x00\x00\x00\x00" + "\x00\x00\xcc\xcc\x78\x38\x30\x78\x48\xcc\x80\x00\x00\x00" + "\x00\x00\x6c\x6c\x6c\x38\x38\x10\x10\x38\x10\x00\x00\x00" + "\x00\x00\xfc\x8c\x0c\x18\x20\x40\xc4\xfc\xf8\x00\x00\x00" + "\x00\x00\x38\x30\x30\x30\x30\x30\x30\x30\x10\x00\x00\x00" + "\x00\x00\x00\x80\xc0\x60\x30\x18\x0c\x04\x00\x00\x00\x00" + "\x00\x00\x38\x18\x18\x18\x18\x18\x18\x18\x10\x00\x00\x00" + "\x30\x38\xcc\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xfe\x00\x00" + "\x00\x30\x18\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x70\x78\x78\xd8\xd8\xfc\x20\x00\x00\x00" + "\x00\x00\xe0\x60\x70\x78\x6c\x6c\x6c\x7c\x30\x00\x00\x00" + "\x00\x00\x00\x00\x78\xcc\xc0\xc0\xc0\xcc\x00\x00\x00\x00" + "\x00\x00\x18\x18\x38\x78\xd8\xd8\xd8\xfc\x20\x00\x00\x00" + "\x00\x00\x00\x00\x78\xcc\xfc\xc0\xc0\xcc\x00\x00\x00\x00" + "\x00\x00\x38\x34\x30\x70\x30\x30\x30\x70\x20\x00\x00\x00" + "\x00\x00\x00\x00\x64\xd8\xd8\xd8\xd8\xf8\x38\xd8\x78\x00" + "\x00\x00\xe0\x60\x68\x7c\x6c\x6c\x6c\xec\xc0\x00\x00\x00" + "\x00\x00\x10\x10\x30\x30\x10\x10\x10\x38\x10\x00\x00\x00" + "\x00\x00\x0c\x00\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x6c\x38\x00" + "\x00\x00\xe0\x60\x64\x68\x70\x78\x68\xec\xc0\x00\x00\x00" + "\x00\x00\x30\x10\x10\x10\x10\x10\x10\x38\x10\x00\x00\x00" + "\x00\x00\x00\x00\xc8\xfc\xdc\xdc\xdc\xcc\x80\x00\x00\x00" + "\x00\x00\x00\x00\xd8\x6c\x6c\x6c\x6c\x6c\x00\x00\x00\x00" + "\x00\x00\x00\x00\x78\xcc\xcc\xcc\xcc\xfc\x30\x00\x00\x00" + "\x00\x00\x00\x00\xd8\x6c\x6c\x6c\x6c\x7c\x70\x60\xe0\x00" + "\x00\x00\x00\x00\x64\xd8\xd8\xd8\xd8\xf8\x38\x18\x1c\x00" + "\x00\x00\x00\x00\xd8\x7c\x6c\x60\x60\xe0\xe0\x00\x00\x00" + "\x00\x00\x00\x00\x78\xcc\x60\x38\x8c\xfc\x30\x00\x00\x00" + "\x00\x00\x20\x30\xf8\x30\x30\x30\x30\x3c\x00\x00\x00\x00" + "\x00\x00\x00\x00\xc8\xd8\xd8\xd8\xd8\xfc\x20\x00\x00\x00" + "\x00\x00\x00\x00\xc4\xcc\xcc\xcc\xcc\x78\x00\x00\x00\x00" + "\x00\x00\x00\x00\xc4\xcc\xcc\xdc\xfc\xfc\x00\x00\x00\x00" + "\x00\x00\x00\x00\xc4\x48\x30\x30\x38\xcc\x80\x00\x00\x00" + "\x00\x00\x00\x00\xc4\xcc\xcc\xcc\xcc\xfc\x3c\x0c\xf8\x00" + "\x00\x00\x00\x00\xfc\xd8\x10\x20\x40\xfc\xf8\x00\x00\x00" + "\x00\x00\x1c\x10\x10\x70\x30\x10\x10\x18\x08\x00\x00\x00" + "\x00\x00\x10\x10\x10\x10\x10\x10\x10\x10\x00\x00\x00\x00" + "\x00\x00\x70\x10\x10\x1c\x18\x10\x10\x30\x20\x00\x00\x00" + "\x00\x7c\xd8\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x10\x38\x6c\xc6\xc6\xfe\x00\x00\x00\x00" + "\x3c\x3c\x3c\x3c\x3c\x3c\x3f\x3c\x3c\x3c\x3c\x3c\x3c\x3c" + "\x00\x78\x3c\x3c\x3c\x2c\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x38\xcc\xcc\xfc\xcc\xcc\xcc\x78\x00\x00\x00\x00" + "\x00\x00\xfc\xcc\xc0\xc0\xc0\xc0\xc0\xc0\x80\x00\x00\x00" + "\x00\x00\xfc\xc0\x60\x30\x10\x20\x40\xfc\xf8\x00\x00\x00" + "\x00\x00\x00\x00\x64\xf8\xd0\xd0\xd8\xfc\x20\x00\x00\x00" + "\x00\x00\x00\x00\x7c\xf8\xd0\xd0\xd0\xf0\x20\x00\x00\x00" + "\x00\x00\x00\x64\xf8\x18\x10\x10\x10\x10\x00\x00\x00\x00" + "\x00\x00\x38\xcc\xcc\xcc\x48\x78\x78\xfc\xc8\x00\x00\x00" + "\x00\x00\x3c\x30\x18\x3c\x6c\x6c\x6c\x7c\x10\x00\x00\x00" + "\x00\x00\x7c\x38\x6c\x6c\x6c\x6c\x38\x38\x38\x00\x00\x00" + "\x00\x00\x30\xfc\xcc\xcc\xcc\xcc\xcc\xcc\x80\x00\x00\x00" + "\x00\x00\x38\x60\x60\x78\x60\x60\x60\x30\x00\x00\x00\x00" + "\x00\x00\x00\x00\x7c\xff\xd7\xff\x7c\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00\x00" + "\x10\x10\x10\x10\x10\x10\xff\x10\x10\x10\x10\x10\x10\x10" + "\x00\x00\x00\x00\x3f\x30\x3f\x3c\x3c\x3c\x3c\x3c\x3c\x3c" + "\x00\x00\x00\x00\x44\x6c\x6c\x6c\x6c\x7c\x70\x60\xc0\x00" + "\x10\x10\x10\x10\x1f\x18\x1f\x10\x10\x10\x10\x10\x10\x10" + "\x00\x00\x1c\x16\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\x00\x00\x00\x00\x10\x00\x7c\x00\x10\x00\x00\x00\x00\x00" + "\x00\x00\x00\x30\x18\x0c\x08\x30\x20\x38\x38\x00\x00\x00" + "\x00\x0e\x18\x18\x18\x18\xf8\x78\x78\x38\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x10\x10\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x3f\x3c\x3c\x3c\x3c\x3c\x3c\x3c" + "\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\xff\xff\xff\xff" + "\x00\x18\x18\x3c\x66\x60\x60\x66\x3c\x18\x18\x00\x00\x00" + "\x00\x38\x6c\x64\x60\xf0\x60\x60\x60\xe6\xfc\x00\x00\x00" + "\x00\x00\x66\x66\x3c\x18\x7e\x18\x7e\x18\x18\x00\x00\x00" + "\x00\xf8\xcc\xcc\xf8\xc4\xcc\xde\xcc\xcc\xc6\x00\x00\x00" + "\x00\x30\x78\x00\x70\x78\x78\xd8\xd8\xfc\x20\x00\x00\x00" + "\x00\x00\x78\xd8\xd8\xd8\xd8\xcc\xcc\xcc\x80\x00\x00\x00" + "\x00\x00\x02\x06\x7c\xff\xd7\xf7\x7c\xc0\x80\x00\x00\x00" + "\x00\x00\x00\x18\x30\x60\x20\x18\x08\x38\x38\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x10\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x10\x7c\x38\x10\x00\x38\x38\x00\x00\x00" + "\x00\x00\x00\x00\xff\x00\xff\x10\x10\x10\x10\x10\x10\x10" + "\x00\x00\x00\x00\x00\xfc\x0c\x0c\x0c\x00\x00\x00\x00\x00" + "\x3c\x3c\x3c\x3c\x3c\x3c\x3c\x3c\x3c\x3c\x3c\x3c\x3c\x3c" + "\x00\x00\x30\x30\x00\x30\x30\x60\xc6\xc6\x7c\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\xfe\xc0\xc0\xc0\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\xfe\x06\x06\x06\x00\x00\x00\x00" + "\x3c\x3c\x3c\x3c\x3c\x3c\xfc\x00\x00\x00\x00\x00\x00\x00" + "\x3c\x3c\x3c\x3c\xfc\x0c\xfc\x00\x00\x00\x00\x00\x00\x00" + "\x00\x18\x30\x20\x30\x30\x10\x10\x10\x38\x10\x00\x00\x00" + "\x00\x00\x00\x00\x36\x6c\xd8\x6c\x36\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\xd8\x6c\x36\x6c\xd8\x00\x00\x00\x00\x00" + "\xaa\x00\xaa\x00\xaa\x00\xaa\x00\xaa\x00\xaa\x00\xaa\x00" + "\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55\xaa\x55" + "\x55\xff\x55\xff\x55\xff\x55\xff\x55\xff\x55\xff\x55\xff" + "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\x01\x01\x01\x01\x01\x01\x01\xff\x01\x01\x01\x01\x01\x01" + "\x01\x01\x01\x01\x01\xff\x01\x01\xff\x01\x01\x01\x01\x01" + "\x03\x03\x03\x03\x03\x03\x03\xff\x03\x03\x03\x03\x03\x03" + "\xff\xff\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01" + "\xff\xff\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\x03\x03\x03\x03\x03\xff\x03\x03\xff\x03\x03\x03\x03\x03" + "\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24" + "\x3f\x3f\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24" + "\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x3f\x3f" + "\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\x01\xff\xff" + "\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\xff\xff" + "\xf0\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x1f" + "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\xff" + "\xff\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\x80\x80\x80\x80\x80\x80\x80\xff\x80\x80\x80\x80\x80\x80" + "\x00\x00\x00\x00\x00\x00\x00\xff\x00\x00\x00\x00\x00\x00" + "\x10\x10\x10\x10\x10\x10\x10\xff\x10\x10\x10\x10\x10\x10" + "\x80\x80\x80\x80\x80\xff\x80\x80\xff\x80\x80\x80\x80\x80" + "\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xff\xc0\xc0\xc0\xc0\xc0\xc0" + "\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\xfc\xfc" + "\xfc\xfc\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24" + "\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\xff\xff" + "\xff\xff\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24" + "\xc0\xc0\xc0\xc0\xc0\xff\xc0\xc0\xff\xc0\xc0\xc0\xc0\xc0" + "\x00\x00\x00\x00\x00\xff\x00\x00\xff\x00\x00\x00\x00\x00" + "\x24\x24\x24\x24\x24\xff\x24\x24\xff\x24\x24\x24\x24\x24" + "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\xff\xff" + "\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\xff" + "\xff\xff\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\xff\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24\x24" + "\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\xff" + "\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xff" + "\xff\xff\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80\x80" + "\xff\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xc0" + "\x24\x24\x24\x24\x24\xff\x24\x24\xff\x24\x24\x24\x24\x24" + "\x10\x10\x10\x10\x10\xff\x10\x10\xff\x10\x10\x10\x10\x10" + "\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\xf0" + "\x1f\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10\x10" + "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" + "\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\xff\xff\xff" + "\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0" + "\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f" + "\xff\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x76\xdc\xd8\xd8\xdc\x76\x00\x00\x00" + "\xff\xff\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\xfe\xc6\xc6\xc0\xc0\xc0\xc0\xc0\xc0\x00\x00\x00" + "\x00\x00\x00\x00\xfe\x6c\x6c\x6c\x6c\x6c\x6c\x00\x00\x00" + "\x00\x00\xfe\xc6\x60\x30\x18\x30\x60\xc6\xfe\x00\x00\x00" + "\x00\x00\x00\x00\x00\x7e\xd8\xd8\xd8\xd8\x70\x00\x00\x00" + "\x10\x10\x10\x10\xf0\x30\xf0\x10\x10\x10\x10\x10\x10\x10" + "\x00\x00\x00\x00\x76\xdc\x18\x18\x18\x18\x18\x00\x00\x00" + "\x00\x00\x7e\x18\x3c\x66\x66\x66\x3c\x18\x7e\x00\x00\x00" + "\x00\x00\x38\x6c\xc6\xc6\xfe\xc6\xc6\x6c\x38\x00\x00\x00" + "\x00\x00\x38\x6c\xc6\xc6\xc6\x6c\x6c\x6c\xee\x00\x00\x00" + "\x00\x00\x1e\x30\x18\x0c\x3e\x66\x66\x66\x3c\x00\x00\x00" + "\x00\x00\x00\x00\x00\x7e\xdb\xdb\x7e\x00\x00\x00\x00\x00" + "\x00\x00\x03\x06\x7e\xdb\xdb\xf3\x7e\x60\xc0\x00\x00\x00" + "\x00\x00\x1c\x30\x60\x60\x7c\x60\x60\x30\x1c\x00\x00\x00" + "\x00\x00\x00\x7c\xc6\xc6\xc6\xc6\xc6\xc6\xc6\x00\x00\x00" + "\x00\x00\x00\xfe\x00\x00\xfe\x00\x00\xfe\x00\x00\x00\x00" + "\x5a\xb4\xa4\x58\xa4\x78\x58\x88\x88\x48\x48\xa4\x5a\xa4" + "\x00\x00\x30\x18\x0c\x06\x0c\x18\x30\x00\x7e\x00\x00\x00" + "\x00\x00\x0c\x18\x30\x60\x30\x18\x0c\x00\x7e\x00\x00\x00" + "\x00\x00\x0e\x1b\x1b\x18\x18\x18\x18\x18\x18\x18\x18\x00" + "\x00\x18\x18\x18\x18\x18\x18\x18\xd8\xd8\x70\x00\x00\x00" + "\x00\x00\x00\x18\x18\x00\x7e\x00\x18\x18\x00\x00\x00\x00" + "\x00\x00\x00\x00\x76\xdc\x00\x76\xdc\x00\x00\x00\x00\x00" + "\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\xfc\x3c\x3c\x3c\x3c\x3c\x3c\x3c" + "\x00\x00\x00\x00\x00\x00\xfc\x3c\x3c\x3c\x3c\x3c\x3c\x3c" + "\x00\x0f\x0c\x0c\x0c\x0c\x0c\xec\x6c\x3c\x1c\x00\x00\x00" + "\x00\xd8\x6c\x6c\x6c\x6c\x6c\x00\x00\x00\x00\x00\x00\x00" + "\xfe\xfe\xfe\x7e\x7e\xfe\xfe\xfe\xfe\xfe\xfe\x7e\xfe\x7e" + "\x00\x00\x00\x00\x7c\x7c\x7c\x7c\x7c\x7c\x00\x00\x00\x00" + "\x00\x30\x60\x00\x70\x78\x78\xd8\xd8\xfc\x20\x00\x00\x00" + , "\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x40\x40\x58\x00\x00\x00" + "\x00\x7c\x7e\x7e\x66\x7c\x18\x00" + "\x00\x28\x7c\x7c\x3c\x18\x00\x00" + "\x00\x00\x38\x3c\x38\x10\x00\x00" + "\x00\x18\x3c\x66\x3c\x18\x00\x00" + "\x00\x18\x3c\x7c\x18\x18\x00\x00" + "\x00\x10\x00\x28\x28\x28\x00\x00" + "\x7e\x7e\x7e\x66\x66\x7e\x7e\x7e" + "\x00\x00\x28\x24\x24\x18\x00\x00" + "\x7e\x7e\x42\x58\x58\x66\x7e\x7e" + "\x00\x0c\x14\x38\x68\x68\x00\x00" + "\x00\x2c\x24\x18\x18\x18\x00\x00" + "\x00\x16\x10\x10\x30\x70\x00\x00" + "\x00\x36\x36\x26\x26\x64\x60\x00" + "\x00\x18\x3c\x3c\x3c\x18\x00\x00" + "\x00\x60\x70\x78\x70\x60\x00\x00" + "\x00\x04\x1c\x3c\x1c\x04\x00\x00" + "\x00\x18\x18\x18\x18\x18\x00\x00" + "\x00\x24\x24\x24\x00\x24\x00\x00" + "\x18\x18\x18\x38\x18\x18\x18\x18" + "\x00\x10\x10\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x7c\x38\x00" + "\x00\x18\x18\x18\x18\x18\x18\x00" + "\x00\x18\x18\x18\x18\x18\x00\x00" + "\x00\x18\x18\x18\x18\x18\x00\x00" + "\x00\x00\x08\x3c\x08\x00\x00\x00" + "\x00\x00\x20\x38\x30\x00\x00\x00" + "\x00\x00\x00\x60\x60\x00\x00\x00" + "\x00\x00\x28\x3c\x28\x00\x00\x00" + "\x00\x00\x18\x38\x3c\x7c\x00\x00" + "\x00\x7c\x3c\x38\x18\x10\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x10\x18\x10\x00\x10\x00\x00" + "\x00\x28\x00\x00\x00\x00\x00\x00" + "\x00\x00\x38\x38\x38\x38\x00\x00" + "\x10\x28\x20\x08\x08\x28\x10\x00" + "\x00\x00\x20\x00\x00\x08\x00\x00" + "\x00\x10\x38\x38\x28\x28\x00\x00" + "\x00\x10\x00\x00\x00\x00\x00\x00" + "\x00\x00\x10\x10\x10\x00\x00\x00" + "\x00\x10\x08\x08\x08\x10\x00\x00" + "\x00\x00\x00\x38\x18\x00\x00\x00" + "\x00\x00\x00\x18\x10\x00\x00\x00" + "\x00\x00\x00\x00\x00\x10\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x10\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x10\x28\x28\x28\x10\x00\x00" + "\x00\x10\x10\x10\x10\x18\x00\x00" + "\x00\x28\x08\x10\x20\x28\x00\x00" + "\x00\x28\x08\x08\x08\x28\x00\x00" + "\x00\x08\x18\x38\x08\x08\x00\x00" + "\x00\x20\x20\x08\x08\x28\x00\x00" + "\x00\x00\x20\x28\x28\x28\x00\x00" + "\x00\x28\x08\x00\x10\x10\x00\x00" + "\x00\x28\x28\x28\x28\x28\x00\x00" + "\x00\x28\x28\x08\x08\x00\x00\x00" + "\x00\x00\x10\x00\x00\x00\x00\x00" + "\x00\x00\x10\x00\x00\x10\x00\x00" + "\x00\x00\x00\x10\x10\x08\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x10\x08\x00\x00\x00\x00" + "\x00\x28\x08\x10\x00\x10\x00\x00" + "\x00\x00\x28\x38\x38\x20\x00\x00" + "\x00\x10\x28\x28\x28\x28\x00\x00" + "\x00\x38\x28\x38\x28\x38\x00\x00" + "\x00\x08\x20\x20\x20\x08\x00\x00" + "\x00\x30\x28\x28\x28\x30\x00\x00" + "\x00\x38\x20\x30\x20\x38\x00\x00" + "\x00\x38\x20\x30\x20\x20\x00\x00" + "\x00\x08\x20\x20\x28\x08\x00\x00" + "\x00\x28\x28\x28\x28\x28\x00\x00" + "\x00\x10\x10\x10\x10\x10\x00\x00" + "\x00\x08\x08\x08\x28\x30\x00\x00" + "\x00\x28\x28\x30\x28\x28\x00\x00" + "\x00\x20\x20\x20\x20\x38\x00\x00" + "\x00\x28\x38\x28\x28\x28\x00\x00" + "\x00\x28\x38\x38\x28\x28\x00\x00" + "\x00\x28\x28\x28\x28\x28\x00\x00" + "\x00\x38\x28\x30\x20\x20\x00\x00" + "\x00\x28\x28\x28\x28\x38\x08\x00" + "\x00\x38\x28\x38\x28\x28\x00\x00" + "\x00\x28\x20\x00\x08\x28\x00\x00" + "\x00\x38\x10\x10\x10\x10\x00\x00" + "\x00\x28\x28\x28\x28\x28\x00\x00" + "\x00\x28\x28\x28\x28\x10\x00\x00" + "\x00\x28\x28\x28\x38\x38\x00\x00" + "\x00\x28\x38\x10\x38\x28\x00\x00" + "\x00\x28\x28\x10\x10\x10\x00\x00" + "\x00\x28\x08\x10\x20\x28\x00\x00" + "\x00\x10\x10\x10\x10\x10\x00\x00" + "\x00\x00\x20\x10\x08\x00\x00\x00" + "\x00\x18\x08\x08\x08\x18\x00\x00" + "\x10\x28\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x18\x28\x28\x00\x00" + "\x00\x20\x30\x28\x28\x38\x00\x00" + "\x00\x00\x00\x20\x20\x28\x00\x00" + "\x00\x08\x18\x28\x28\x28\x00\x00" + "\x00\x00\x00\x38\x20\x28\x00\x00" + "\x00\x18\x10\x10\x10\x10\x00\x00" + "\x00\x00\x00\x28\x28\x38\x08\x00" + "\x00\x20\x20\x38\x28\x28\x00\x00" + "\x00\x10\x10\x10\x10\x10\x00\x00" + "\x00\x08\x08\x08\x08\x08\x28\x00" + "\x00\x20\x20\x30\x30\x28\x00\x00" + "\x00\x10\x10\x10\x10\x10\x00\x00" + "\x00\x00\x00\x38\x38\x28\x00\x00" + "\x00\x00\x00\x28\x28\x28\x00\x00" + "\x00\x00\x00\x28\x28\x28\x00\x00" + "\x00\x00\x00\x28\x28\x38\x20\x20" + "\x00\x00\x00\x28\x28\x38\x08\x08" + "\x00\x00\x00\x38\x20\x20\x00\x00" + "\x00\x00\x00\x20\x10\x28\x00\x00" + "\x00\x10\x30\x10\x10\x18\x00\x00" + "\x00\x00\x00\x28\x28\x28\x00\x00" + "\x00\x00\x00\x28\x28\x10\x00\x00" + "\x00\x00\x00\x28\x38\x38\x00\x00" + "\x00\x00\x00\x10\x10\x28\x00\x00" + "\x00\x00\x00\x28\x28\x28\x08\x00" + "\x00\x00\x00\x10\x00\x28\x00\x00" + "\x00\x00\x10\x10\x10\x00\x00\x00" + "\x00\x10\x10\x10\x10\x10\x00\x00" + "\x00\x10\x10\x18\x10\x10\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x10\x28\x64\x7c\x00\x00" + "\x18\x18\x18\x1c\x18\x18\x18\x18" + "\x00\x18\x18\x00\x00\x00\x00\x00" + "\x00\x10\x28\x28\x28\x10\x00\x00" + "\x00\x28\x20\x20\x20\x20\x00\x00" + "\x00\x28\x00\x10\x00\x28\x00\x00" + "\x00\x00\x00\x38\x30\x38\x00\x00" + "\x00\x00\x00\x30\x30\x30\x00\x00" + "\x00\x00\x38\x10\x10\x10\x00\x00" + "\x00\x10\x28\x28\x38\x28\x00\x00" + "\x00\x10\x10\x18\x28\x18\x00\x00" + "\x00\x18\x18\x28\x18\x18\x00\x00" + "\x00\x00\x28\x28\x28\x28\x00\x00" + "\x00\x10\x20\x30\x20\x10\x00\x00" + "\x00\x00\x00\x3c\x3c\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00" + "\x10\x10\x10\x18\x10\x10\x10\x10" + "\x00\x00\x00\x1c\x18\x18\x18\x18" + "\x00\x00\x00\x28\x28\x38\x20\x00" + "\x10\x10\x18\x18\x10\x10\x10\x10" + "\x00\x08\x10\x10\x10\x10\x10\x10" + "\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x08\x10\x00\x00\x00" + "\x08\x08\x08\x08\x38\x18\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x18\x18\x18\x18" + "\x00\x00\x00\x18\x3c\x3c\x3c\x3c" + "\x18\x18\x20\x20\x38\x18\x00\x00" + "\x38\x20\x30\x20\x20\x64\x00\x00" + "\x00\x2c\x18\x38\x18\x18\x00\x00" + "\x78\x68\x68\x68\x6c\x68\x00\x00" + "\x00\x10\x00\x18\x28\x28\x00\x00" + "\x00\x30\x28\x28\x28\x28\x00\x00" + "\x00\x00\x08\x3c\x3c\x20\x00\x00" + "\x00\x00\x10\x10\x00\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x10\x18\x00\x00\x00\x00" + "\x00\x00\x00\x18\x10\x10\x10\x10" + "\x00\x00\x00\x08\x08\x00\x00\x00" + "\x18\x18\x18\x18\x18\x18\x18\x18" + "\x00\x10\x00\x30\x20\x6c\x00\x00" + "\x00\x00\x00\x60\x60\x40\x00\x00" + "\x00\x00\x00\x0c\x04\x04\x00\x00" + "\x18\x18\x18\x38\x00\x00\x00\x00" + "\x18\x18\x38\x08\x00\x00\x00\x00" + "\x00\x10\x10\x10\x10\x10\x00\x00" + "\x00\x00\x38\x38\x38\x00\x00\x00" + "\x00\x00\x38\x3c\x38\x00\x00\x00" + "\xaa\x00\xaa\x00\xaa\x00\xaa\x00" + "\xaa\x55\xaa\x55\xaa\x55\xaa\x55" + "\x55\xff\x55\xff\x55\xff\x55\xff" + "\x10\x10\x10\x10\x10\x10\x10\x10" + "\x01\x01\x01\x01\xff\x01\x01\x01" + "\x01\x01\xff\x01\x01\xff\x01\x01" + "\x03\x03\x03\x03\xff\x03\x03\x03" + "\xff\xff\x01\x01\x01\x01\x01\x01" + "\xff\xff\x10\x10\x10\x10\x10\x10" + "\x03\x03\xff\x03\x03\xff\x03\x03" + "\x24\x24\x24\x24\x24\x24\x24\x24" + "\x3f\x3f\x24\x24\x24\x24\x24\x24" + "\x24\x24\x24\x24\x24\x24\x3f\x3f" + "\x01\x01\x01\x01\x01\x01\xff\xff" + "\x80\x80\x80\x80\x80\x80\xff\xff" + "\xf0\x10\x10\x10\x10\x10\x10\x10" + "\x10\x10\x10\x10\x10\x10\x10\x1f" + "\x10\x10\x10\x10\x10\x10\x10\xff" + "\xff\x10\x10\x10\x10\x10\x10\x10" + "\x80\x80\x80\x80\xff\x80\x80\x80" + "\x00\x00\x00\x00\xff\x00\x00\x00" + "\x10\x10\x10\x10\xff\x10\x10\x10" + "\x80\x80\xff\x80\x80\xff\x80\x80" + "\xc0\xc0\xc0\xc0\xff\xc0\xc0\xc0" + "\x24\x24\x24\x24\x24\x24\xfc\xfc" + "\xfc\xfc\x24\x24\x24\x24\x24\x24" + "\x24\x24\x24\x24\x24\x24\xff\xff" + "\xff\xff\x24\x24\x24\x24\x24\x24" + "\xc0\xc0\xff\xc0\xc0\xff\xc0\xc0" + "\x00\x00\xff\x00\x00\xff\x00\x00" + "\x24\x24\xff\x24\x24\xff\x24\x24" + "\x10\x10\x10\x10\x10\x10\xff\xff" + "\x24\x24\x24\x24\x24\x24\x24\xff" + "\xff\xff\x10\x10\x10\x10\x10\x10" + "\xff\x24\x24\x24\x24\x24\x24\x24" + "\x03\x03\x03\x03\x03\x03\x03\xff" + "\xc0\xc0\xc0\xc0\xc0\xc0\xc0\xff" + "\xff\xff\x80\x80\x80\x80\x80\x80" + "\xff\xc0\xc0\xc0\xc0\xc0\xc0\xc0" + "\x24\x24\xff\x24\x24\xff\x24\x24" + "\x10\x10\xff\x10\x10\xff\x10\x10" + "\x10\x10\x10\x10\x10\x10\x10\xf0" + "\x1f\x10\x10\x10\x10\x10\x10\x10" + "\xff\xff\xff\xff\xff\xff\xff\xff" + "\x00\x00\x00\x00\xff\xff\xff\xff" + "\xf0\xf0\xf0\xf0\xf0\xf0\xf0\xf0" + "\x0f\x0f\x0f\x0f\x0f\x0f\x0f\x0f" + "\xff\xff\xff\xff\x00\x00\x00\x00" + "\x00\x00\x00\x78\x78\x78\x00\x00" + "\x3c\x3c\x3c\x18\x00\x00\x00\x00" + "\x00\x6c\x60\x60\x60\x60\x00\x00" + "\x00\x00\x38\x28\x28\x28\x00\x00" + "\x00\x64\x30\x10\x30\x64\x00\x00" + "\x00\x00\x00\x78\x78\x70\x00\x00" + "\x10\x10\x10\x30\x10\x10\x10\x10" + "\x00\x00\x38\x18\x18\x18\x00\x00" + "\x00\x18\x3c\x24\x3c\x18\x00\x00" + "\x00\x28\x64\x7c\x64\x28\x00\x00" + "\x00\x28\x64\x6c\x28\x28\x00\x00" + "\x00\x10\x18\x1c\x24\x2c\x00\x00" + "\x00\x00\x00\x7c\x3c\x00\x00\x00" + "\x00\x04\x3c\x76\x3c\x20\x00\x00" + "\x00\x10\x20\x38\x20\x10\x00\x00" + "\x00\x28\x64\x64\x64\x64\x00\x00" + "\x00\x00\x00\x38\x00\x38\x00\x00" + "\x18\x18\x18\x18\x18\x18\x18\x18" + "\x00\x18\x08\x08\x10\x00\x00\x00" + "\x00\x18\x30\x10\x08\x00\x00\x00" + "\x00\x1c\x18\x18\x18\x18\x18\x18" + "\x18\x18\x18\x18\x18\x70\x00\x00" + "\x00\x10\x00\x18\x00\x10\x00\x00" + "\x00\x00\x38\x00\x38\x00\x00\x00" + "\x00\x00\x00\x00\x00\x00\x00\x00" + "\x00\x00\x00\x00\x18\x18\x18\x18" + "\x00\x00\x00\x00\x18\x18\x18\x18" + "\x0c\x08\x08\x08\x28\x18\x00\x00" + "\x38\x28\x28\x28\x00\x00\x00\x00" + "\x3c\x3c\x3c\x3c\x3c\x3c\x3c\x3c" + "\x00\x00\x38\x38\x38\x38\x00\x00" + "\x00\x00\x00\x18\x28\x28\x00\x00" + , NULL, "Perfect DOS VGA", CIOLIB_CP437, true} ,{NULL, NULL, NULL, NULL, NULL, CIOLIB_CP437, false} ,{NULL, NULL, NULL, NULL, NULL, CIOLIB_CP437, false} ,{NULL, NULL, NULL, NULL, NULL, CIOLIB_CP437, false} diff --git a/src/conio/ciolib.h b/src/conio/ciolib.h index 8dbf567d..f3b13c66 100644 --- a/src/conio/ciolib.h +++ b/src/conio/ciolib.h @@ -358,7 +358,7 @@ struct ciolib_screen { uint32_t palette[16]; }; -#define CONIO_FIRST_FREE_FONT 46 +#define CONIO_FIRST_FREE_FONT 48 typedef struct { int mode; @@ -381,6 +381,8 @@ typedef struct { #define CONIO_OPT_DISABLE_CLOSE (1 << 15) // Disable OS/WM app close control/menu-option #define CONIO_OPT_PRESTEL_REVEAL (1 << 16) #define CONIO_OPT_KEY_EVENTS (1 << 17) +#define CONIO_OPT_HIRES_EXTERNAL (1 << 18) // GPU + External look: 2x console texture, smooth stretch has real detail +#define CONIO_OPT_POINTY_EXTERNAL (1 << 19) // Pointy/xBR shader pipeline void (*clreol) (void); int (*puttext) (int,int,int,int,void *); int (*vmem_puttext) (int,int,int,int,struct vmem_cell *); diff --git a/src/conio/gen-pointy-shader.py b/src/conio/gen-pointy-shader.py new file mode 100644 index 00000000..57a23c52 --- /dev/null +++ b/src/conio/gen-pointy-shader.py @@ -0,0 +1,45 @@ +#!/usr/bin/env python3 +"""Embed GLSL and retain the CPU xBR rules verbatim wherever possible.""" +from pathlib import Path +import json +import re + +here = Path(__file__).resolve().parent +cpu = (here / 'xbr.c').read_text() +license = cpu[:cpu.index('#include')] +macros = '''#define LB_MASK 0x00FEFEFEu +#define RED_BLUE_MASK 0x00FF00FFu +#define GREEN_MASK 0x0000FF00u +uint pixel_diff(uint a,uint b) { + ivec3 d=abs(ycc(a)-ycc(b)); + return uint(d.x+(d.y>>1)+(d.z>>1)); +} +''' + cpu[cpu.index('#define ALPHA_BLEND_128_W'):cpu.index('#define CLAMP')] +macros = macros.replace('* (m)', '* uint(m)').replace('< 155)', '< 155u)') +macros = macros.replace('while (0)', 'while (false)') +macros = macros.replace('struct YCoCg_data *YCoCg', 'out YCoCg_data YCoCg') +macros = macros.replace('&yccx', 'yccx').replace('&yccy', 'yccy') +macros = macros.replace('YCoCg->', 'YCoCg.') +macros = macros.replace('static inline ', '').replace('static inline\n', '') +macros = macros.replace('struct YCoCg_data ycc', 'YCoCg_data ycc') +macros = re.sub(r'\buint32_t\b', 'uint', macros) +macros = re.sub(r'\bint32_t\b', 'int', macros) +macros = re.sub(r'\bunsigned\b', 'uint', macros) +macros = re.sub(r'\bconst\s+', '', macros) +# FILT macros use C's integer booleans. +macros = re.sub(r'\bint (left|up)\b', r'bool \1', macros) +neighbours = dict(B1=(0,-2), PB=(0,-1), PE=(0,0), PH=(0,1), H5=(0,2), + A1=(-1,-2), PA=(-1,-1), PD=(-1,0), PG=(-1,1), G5=(-1,2), + A0=(-2,-1), D0=(-2,0), G0=(-2,1), C1=(1,-2), PC=(1,-1), + PF=(1,0), PI=(1,1), I5=(1,2), C4=(2,-1), F4=(2,0), I4=(2,1)) +body = 'uint xbr(ivec2 p, int n) {\nivec2 cell=p/n;\nuint E[16];\nint nl=n, nl1=n*2, nl2=n*3;\n' +for name, (x,y) in neighbours.items(): + body += f'uint {name}=pixel(cell+ivec2({x},{y}));\n' +start = cpu.index(' if (n == 2) {') +end = cpu.index(' sa0 += 1;', start) +body += cpu[start:end] +body += '\nreturn E[(p.y%n)*n+p.x%n];\n}\n' +shader = (here / 'pointy.frag').read_text().replace('/* XBR_INSERT */', license+macros+body) +header = '/* Generated by gen-pointy-shader.py; xBR license is embedded in the shader. */\nstatic const char pointy_fragment[] =\n' +header += '\n'.join(json.dumps(line+'\n') for line in shader.splitlines()) + ';\n' +(here / 'pointy_shader.h').write_text(header) diff --git a/src/conio/gpu_pointy.c b/src/conio/gpu_pointy.c new file mode 100644 index 00000000..9a4c5345 --- /dev/null +++ b/src/conio/gpu_pointy.c @@ -0,0 +1,340 @@ +#include +#include +#include +#include "gpu_pointy.h" +#include "pointy_shader.h" + +#define GPU_GL(F) \ + F(const GLubyte *, GetString, (GLenum)) \ + F(GLenum, GetError, (void)) \ + F(void, GetIntegerv, (GLenum, GLint *)) \ + F(void, PixelStorei, (GLenum, GLint)) \ + F(GLboolean, IsEnabled, (GLenum)) \ + F(void, Enable, (GLenum)) \ + F(void, Disable, (GLenum)) \ + F(void, Viewport, (GLint, GLint, GLsizei, GLsizei)) \ + F(void, GenTextures, (GLsizei, GLuint *)) \ + F(void, DeleteTextures, (GLsizei, const GLuint *)) \ + F(void, ActiveTexture, (GLenum)) \ + F(void, BindTexture, (GLenum, GLuint)) \ + F(void, TexParameteri, (GLenum, GLenum, GLint)) \ + F(void, TexImage2D, (GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const void *)) \ + F(void, TexSubImage2D, (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const void *)) \ + F(GLuint, CreateShader, (GLenum)) \ + F(void, ShaderSource, (GLuint, GLsizei, const GLchar *const *, const GLint *)) \ + F(void, CompileShader, (GLuint)) \ + F(void, GetShaderiv, (GLuint, GLenum, GLint *)) \ + F(void, GetShaderInfoLog, (GLuint, GLsizei, GLsizei *, GLchar *)) \ + F(void, DeleteShader, (GLuint)) \ + F(GLuint, CreateProgram, (void)) \ + F(void, AttachShader, (GLuint, GLuint)) \ + F(void, LinkProgram, (GLuint)) \ + F(void, GetProgramiv, (GLuint, GLenum, GLint *)) \ + F(void, GetProgramInfoLog, (GLuint, GLsizei, GLsizei *, GLchar *)) \ + F(void, DeleteProgram, (GLuint)) \ + F(void, UseProgram, (GLuint)) \ + F(GLint, GetUniformLocation, (GLuint, const GLchar *)) \ + F(void, Uniform1i, (GLint, GLint)) \ + F(void, Uniform2i, (GLint, GLint, GLint)) \ + F(void, GenFramebuffers, (GLsizei, GLuint *)) \ + F(void, DeleteFramebuffers, (GLsizei, const GLuint *)) \ + F(void, BindFramebuffer, (GLenum, GLuint)) \ + F(void, FramebufferTexture2D, (GLenum, GLenum, GLenum, GLuint, GLint)) \ + F(GLenum, CheckFramebufferStatus, (GLenum)) \ + F(void, GenVertexArrays, (GLsizei, GLuint *)) \ + F(void, DeleteVertexArrays, (GLsizei, const GLuint *)) \ + F(void, BindVertexArray, (GLuint)) \ + F(void, DrawArrays, (GLenum, GLint, GLsizei)) \ + F(void, ReadPixels, (GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, void *)) + +#define DECLARE(ret, name, args) ret (APIENTRY *name) args; +static struct { GPU_GL(DECLARE) } gl; +#undef DECLARE +static GLuint program, display, textures[3], fbo, vao; +static int widths[3], heights[3], current, max_texture; +static char error[4096]; +static const GLenum capabilities[] = {GL_BLEND, GL_SCISSOR_TEST, GL_DEPTH_TEST, GL_CULL_FACE, GL_FRAMEBUFFER_SRGB}; +struct state { + GLint program, drawfbo, readfbo, vao, viewport[4], active, texture; + GLint unpack_row_length, pack_row_length; + GLboolean enabled[5]; +}; + +static void save(struct state *s) +{ + gl.GetIntegerv(GL_CURRENT_PROGRAM, &s->program); + gl.GetIntegerv(GL_DRAW_FRAMEBUFFER_BINDING, &s->drawfbo); + gl.GetIntegerv(GL_READ_FRAMEBUFFER_BINDING, &s->readfbo); + gl.GetIntegerv(GL_VERTEX_ARRAY_BINDING, &s->vao); + gl.GetIntegerv(GL_VIEWPORT, s->viewport); + gl.GetIntegerv(GL_ACTIVE_TEXTURE, &s->active); + gl.GetIntegerv(GL_UNPACK_ROW_LENGTH, &s->unpack_row_length); + gl.GetIntegerv(GL_PACK_ROW_LENGTH, &s->pack_row_length); + gl.PixelStorei(GL_UNPACK_ROW_LENGTH,0); + gl.PixelStorei(GL_PACK_ROW_LENGTH,0); + gl.ActiveTexture(GL_TEXTURE0); + gl.GetIntegerv(GL_TEXTURE_BINDING_2D, &s->texture); + for (int i=0; i<5; i++) { + s->enabled[i]=gl.IsEnabled(capabilities[i]); + gl.Disable(capabilities[i]); + } +} + +static void restore(const struct state *s) +{ + gl.UseProgram(s->program); + gl.BindFramebuffer(GL_DRAW_FRAMEBUFFER, s->drawfbo); + gl.BindFramebuffer(GL_READ_FRAMEBUFFER, s->readfbo); + gl.BindVertexArray(s->vao); + gl.Viewport(s->viewport[0],s->viewport[1],s->viewport[2],s->viewport[3]); + gl.BindTexture(GL_TEXTURE_2D,s->texture); + gl.ActiveTexture(s->active); + gl.PixelStorei(GL_UNPACK_ROW_LENGTH,s->unpack_row_length); + gl.PixelStorei(GL_PACK_ROW_LENGTH,s->pack_row_length); + for (int i=0; i<5; i++) { + if (s->enabled[i]) + gl.Enable(capabilities[i]); + } +} + +static bool check(void) +{ + GLenum e=gl.GetError(); + if (e==GL_NO_ERROR) + return true; + snprintf(error,sizeof(error),"Pointy OpenGL error 0x%x",e); + return false; +} + +static GLuint shader(GLenum type, const char *source) +{ + GLuint s=gl.CreateShader(type); + GLint ok=0; + gl.ShaderSource(s,1,&source,NULL); + gl.CompileShader(s); + gl.GetShaderiv(s,GL_COMPILE_STATUS,&ok); + if (!ok) { + gl.GetShaderInfoLog(s,sizeof(error),NULL,error); + gl.DeleteShader(s); + return 0; + } + return s; +} + +static GLuint link_shader(const char *fragment) +{ + static const char vertex[] = "#version 330 core\nvoid main() {\n" + "vec2 p=vec2((gl_VertexID<<1)&2, gl_VertexID&2);\n" + "gl_Position=vec4(p*2.0-1.0,0.0,1.0); }\n"; + GLuint vs=shader(GL_VERTEX_SHADER,vertex); + GLuint fs=shader(GL_FRAGMENT_SHADER,fragment); + if (!vs || !fs) { + if (vs) gl.DeleteShader(vs); + if (fs) gl.DeleteShader(fs); + return 0; + } + GLuint p=gl.CreateProgram(); + GLint ok=0; + gl.AttachShader(p,vs); + gl.AttachShader(p,fs); + gl.LinkProgram(p); + gl.DeleteShader(vs); + gl.DeleteShader(fs); + gl.GetProgramiv(p,GL_LINK_STATUS,&ok); + if (!ok) { + gl.GetProgramInfoLog(p,sizeof(error),NULL,error); + gl.DeleteProgram(p); + return 0; + } + return p; +} + +bool gpu_pointy_init(void *(*getproc)(const char *)) +{ + if (program && display) + return true; +#define LOAD(ret, name, args) \ + gl.name=(ret (APIENTRY *)args)getproc("gl" #name); \ + if (!gl.name) { snprintf(error,sizeof(error),"Missing OpenGL function gl%s",#name); return false; } + GPU_GL(LOAD) +#undef LOAD + if (!gl.GetString(GL_VERSION)) { + snprintf(error,sizeof(error),"Pointy needs an active OpenGL 3.3 renderer"); + return false; + } + static const char final[] = "#version 330 core\n" + "uniform usampler2D image; uniform ivec2 size; uniform ivec2 origin;\n" + "out vec4 color; void main() { ivec2 p=ivec2(gl_FragCoord.xy)-origin;\n" + "uint v=texelFetch(image,ivec2(p.x,size.y-1-p.y),0).r;\n" + "color=vec4(float((v>>16)&255u),float((v>>8)&255u),float(v&255u),255.0)/255.0; }\n"; + program=link_shader(pointy_fragment); + if (!program) + return false; + display=link_shader(final); + if (!display) { + gl.DeleteProgram(program); + program=0; + return false; + } + gl.GenTextures(3,textures); + gl.GenFramebuffers(1,&fbo); + gl.GenVertexArrays(1,&vao); + gl.GetIntegerv(GL_MAX_TEXTURE_SIZE,&max_texture); + return check(); +} + +static bool storage(int index, int w, int h) +{ + if (w<1 || h<1 || w>max_texture || h>max_texture) { + snprintf(error,sizeof(error),"Pointy texture %dx%d exceeds GPU limits (%d)",w,h,max_texture); + return false; + } + gl.BindTexture(GL_TEXTURE_2D,textures[index]); + if (widths[index]!=w || heights[index]!=h) { + gl.TexImage2D(GL_TEXTURE_2D,0,GL_R32UI,w,h,0,GL_RED_INTEGER,GL_UNSIGNED_INT,NULL); + gl.TexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_NEAREST); + gl.TexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_NEAREST); + if (!check()) + return false; + widths[index]=w; + heights[index]=h; + } + return true; +} + +static void uniform1(const char *name,int value) +{ + gl.Uniform1i(gl.GetUniformLocation(program,name),value); +} + +static bool pass(int operation,int w,int h,int mx,int my,int repeat) +{ + int next=(current+1)%3; + if (!storage(next,w,h)) + return false; + gl.BindFramebuffer(GL_FRAMEBUFFER,fbo); + gl.FramebufferTexture2D(GL_FRAMEBUFFER,GL_COLOR_ATTACHMENT0,GL_TEXTURE_2D,textures[next],0); + if (gl.CheckFramebufferStatus(GL_FRAMEBUFFER)!=GL_FRAMEBUFFER_COMPLETE) { + snprintf(error,sizeof(error),"Pointy framebuffer is incomplete"); + return false; + } + gl.BindTexture(GL_TEXTURE_2D,textures[current]); + gl.UseProgram(program); + gl.BindVertexArray(vao); + gl.Viewport(0,0,w,h); + uniform1("image",0); + uniform1("operation",operation); + uniform1("repeatRows",repeat); + uniform1("step16",operation==3 ? ((int64_t)heights[current]<<16)/h : ((int64_t)widths[current]<<16)/w); + gl.Uniform2i(gl.GetUniformLocation(program,"sourceSize"),widths[current],heights[current]); + gl.Uniform2i(gl.GetUniformLocation(program,"factors"),mx,my); + gl.DrawArrays(GL_TRIANGLES,0,3); + current=next; + return check(); +} + +bool gpu_pointy_scale(const uint32_t *pixels,int w,int h,int width,int height) +{ + if (!program || !pixels || w<1 || h<1 || width<1 || height<1) + return false; + struct state saved; + save(&saved); + bool ok=false; + current=0; + if (!storage(0,w,h)) + goto done; + gl.TexSubImage2D(GL_TEXTURE_2D,0,0,0,w,h,GL_RED_INTEGER,GL_UNSIGNED_INT,pixels); + if (!check()) + goto done; + int x=width/w,y=height/h; + // Downscales have no integer enlargement pass. + if (x<1) x=1; + if (y<1) y=1; + bool swapped=x>y; + if (swapped) { int t=x; x=y; y=t; } + int minimum=x, odd=1, p5=0,p3=0,b4=0,b2=0; + if ((minimum&1) && minimum>5) { + odd=x; + x/=odd; + y/=odd; + minimum/=odd; + } + while (minimum>1 && minimum%5==0) { p5++; x/=5; y/=5; minimum/=5; } + while (minimum>1 && minimum%3==0) { p3++; x/=3; y/=3; minimum/=3; } + while (minimum>1 && minimum%4==0) { b4++; x/=4; y/=4; minimum/=4; } + while (minimum>1 && minimum%2==0) { b2++; x/=2; y/=2; minimum/=2; } + if (swapped) { int t=x; x=y; y=t; } + int repeat=1; + if (x!=1 || y!=1) { + if (!pass(0,w*x,h*y,x,y,1)) goto done; + w*=x; h*=y; repeat=y; + } + int factors[]={odd,5,3,4,2}; + int counts[]={odd>1, p5,p3,b4,b2}; + for (int i=0;i<5;i++) { + while (counts[i]-->0) { + int n=factors[i]; + if (!pass(i<3 ? 1:2,w*n,h*n,n,n,1)) goto done; + w*=n; h*=n; repeat=1; + } + } + if (h!=height) { + if (!pass(3,w,height,1,1,repeat)) goto done; + h=height; + } + if (w!=width && !pass(4,width,h,1,1,1)) goto done; + ok=true; +done: + restore(&saved); + return ok; +} + +bool gpu_pointy_present(int w,int h,int ww,int wh) +{ + struct state saved; + save(&saved); + gl.BindFramebuffer(GL_FRAMEBUFFER,0); + gl.UseProgram(display); + gl.BindVertexArray(vao); + gl.BindTexture(GL_TEXTURE_2D,textures[current]); + int x=(ww-w)/2,y=(wh-h)/2; + gl.Viewport(x,y,w,h); + gl.Uniform1i(gl.GetUniformLocation(display,"image"),0); + gl.Uniform2i(gl.GetUniformLocation(display,"size"),w,h); + gl.Uniform2i(gl.GetUniformLocation(display,"origin"),x,y); + gl.DrawArrays(GL_TRIANGLES,0,3); + bool ok=check(); + restore(&saved); + return ok; +} + +bool gpu_pointy_read(uint32_t *pixels,int w,int h) +{ + struct state saved; + save(&saved); + gl.BindFramebuffer(GL_FRAMEBUFFER,fbo); + gl.FramebufferTexture2D(GL_FRAMEBUFFER,GL_COLOR_ATTACHMENT0,GL_TEXTURE_2D,textures[current],0); + gl.ReadPixels(0,0,w,h,GL_RED_INTEGER,GL_UNSIGNED_INT,pixels); + bool ok=check(); + restore(&saved); + return ok; +} + +void gpu_pointy_destroy(void) +{ + if (!program && !display) + return; + gl.DeleteTextures(3,textures); + gl.DeleteFramebuffers(1,&fbo); + gl.DeleteVertexArrays(1,&vao); + gl.DeleteProgram(program); + gl.DeleteProgram(display); + program=display=fbo=vao=0; + memset(widths,0,sizeof(widths)); + memset(heights,0,sizeof(heights)); +} + +const char *gpu_pointy_error(void) +{ + return error; +} diff --git a/src/conio/gpu_pointy.h b/src/conio/gpu_pointy.h new file mode 100644 index 00000000..1efd0aff --- /dev/null +++ b/src/conio/gpu_pointy.h @@ -0,0 +1,12 @@ +#ifndef GPU_POINTY_H +#define GPU_POINTY_H +#include +#include + +bool gpu_pointy_init(void *(*getproc)(const char *)); +bool gpu_pointy_scale(const uint32_t *pixels, int w, int h, int width, int height); +bool gpu_pointy_present(int width, int height, int window_width, int window_height); +bool gpu_pointy_read(uint32_t *pixels, int width, int height); +void gpu_pointy_destroy(void); +const char *gpu_pointy_error(void); +#endif diff --git a/src/conio/pointy.frag b/src/conio/pointy.frag new file mode 100644 index 00000000..56d7e0ce --- /dev/null +++ b/src/conio/pointy.frag @@ -0,0 +1,54 @@ +#version 330 core +uniform usampler2D image; +uniform ivec2 sourceSize; +uniform ivec2 factors; +uniform int operation; +uniform int repeatRows; +uniform int step16; +layout(location=0) out uint result; +uint pixel(ivec2 p) { + return texelFetch(image, clamp(p, ivec2(0), sourceSize-1), 0).r; +} +ivec3 ycc(uint p) { + int r=int((p>>16)&255u), g=int((p>>8)&255u), b=int(p&255u); + int co=r-b, t=b+co/2, cg=g-t; + return ivec3(t+cg/2,co,cg); +} +uint blend(uint a,uint b,int weight) { + if (weight==0 || a==b) return a; + ivec3 v=(ycc(a)*(65535-weight)+ycc(b)*weight)/65535; + int t=v.x-v.z/2, g=v.z+t, blue=t-v.y/2, red=blue+v.y; + uvec3 rgb=uvec3(clamp(ivec3(red,g,blue),ivec3(0),ivec3(255))); + return (rgb.r<<16)|(rgb.g<<8)|rgb.b; +} +// XBR is generated from xbr.c below, including its license. +/* XBR_INSERT */ +void main() { + ivec2 p=ivec2(gl_FragCoord.xy); + if (operation==0) { result=pixel(p/factors); return; } + if (operation==1) { + int n=factors.x, mid=n/2; + ivec2 cell=p/n, sub=p%n; + uint center=pixel(cell); + ivec2 edge=min(sub,ivec2(n-1)-sub); + if (edge.x+edge.y>16); + ivec2 b=a; + b[axis]++; + int weight=int(pos&65535u); + if (axis==1 && repeatRows>1 && a.y/repeatRows==b.y/repeatRows) + weight=0; + result=blend(pixel(a),pixel(b),weight); +} diff --git a/src/conio/pointy_shader.h b/src/conio/pointy_shader.h new file mode 100644 index 00000000..31c482ab --- /dev/null +++ b/src/conio/pointy_shader.h @@ -0,0 +1,283 @@ +/* Generated by gen-pointy-shader.py; xBR license is embedded in the shader. */ +static const char pointy_fragment[] = +"#version 330 core\n" +"uniform usampler2D image;\n" +"uniform ivec2 sourceSize;\n" +"uniform ivec2 factors;\n" +"uniform int operation;\n" +"uniform int repeatRows;\n" +"uniform int step16;\n" +"layout(location=0) out uint result;\n" +"uint pixel(ivec2 p) {\n" +"\treturn texelFetch(image, clamp(p, ivec2(0), sourceSize-1), 0).r;\n" +"}\n" +"ivec3 ycc(uint p) {\n" +"\tint r=int((p>>16)&255u), g=int((p>>8)&255u), b=int(p&255u);\n" +"\tint co=r-b, t=b+co/2, cg=g-t;\n" +"\treturn ivec3(t+cg/2,co,cg);\n" +"}\n" +"uint blend(uint a,uint b,int weight) {\n" +"\tif (weight==0 || a==b) return a;\n" +"\tivec3 v=(ycc(a)*(65535-weight)+ycc(b)*weight)/65535;\n" +"\tint t=v.x-v.z/2, g=v.z+t, blue=t-v.y/2, red=blue+v.y;\n" +"\tuvec3 rgb=uvec3(clamp(ivec3(red,g,blue),ivec3(0),ivec3(255)));\n" +"\treturn (rgb.r<<16)|(rgb.g<<8)|rgb.b;\n" +"}\n" +"// XBR is generated from xbr.c below, including its license.\n" +"/*\n" +" * This file is part of FFmpeg.\n" +" *\n" +" * Copyright (c) 2011, 2012 Hyllian/Jararaca \n" +" * Copyright (c) 2014 Arwa Arif \n" +" *\n" +" * FFmpeg is free software; you can redistribute it and/or\n" +" * modify it under the terms of the GNU Lesser General Public\n" +" * License as published by the Free Software Foundation; either\n" +" * version 2.1 of the License, or (at your option) any later version.\n" +" *\n" +" * FFmpeg is distributed in the hope that it will be useful,\n" +" * but WITHOUT ANY WARRANTY; without even the implied warranty of\n" +" * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n" +" * Lesser General Public License for more details.\n" +" *\n" +" * You should have received a copy of the GNU Lesser General Public\n" +" * License along with FFmpeg; if not, write to the Free Software\n" +" * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n" +" */\n" +"\n" +"/**\n" +" * @file\n" +" * XBR Filter is used for depixelization of image.\n" +" * This is based on Hyllian's xBR shader.\n" +" *\n" +" * @see https://forums.libretro.com/t/xbr-algorithm-tutorial/123\n" +" * @see https://github.com/yoyofr/iFBA/blob/master/fba_src/src/intf/video/scalers/xbr.cpp\n" +" */\n" +"\n" +"#define LB_MASK 0x00FEFEFEu\n" +"#define RED_BLUE_MASK 0x00FF00FFu\n" +"#define GREEN_MASK 0x0000FF00u\n" +"uint pixel_diff(uint a,uint b) {\n" +" ivec3 d=abs(ycc(a)-ycc(b));\n" +" return uint(d.x+(d.y>>1)+(d.z>>1));\n" +"}\n" +"#define ALPHA_BLEND_128_W(a, b) ((((a) & LB_MASK) >> 1) + (((b) & LB_MASK) >> 1))\n" +"#define ALPHA_BLEND_BASE(a, b, m, s) ( (RED_BLUE_MASK & (((a) & RED_BLUE_MASK) + (((((b) & RED_BLUE_MASK) - ((a) & RED_BLUE_MASK)) * uint(m)) >> (s)))) \\\n" +" | (GREEN_MASK & (((a) & GREEN_MASK) + (((((b) & GREEN_MASK) - ((a) & GREEN_MASK)) * uint(m)) >> (s)))))\n" +"#define ALPHA_BLEND_32_W(a, b) ALPHA_BLEND_BASE(a, b, 1, 3)\n" +"#define ALPHA_BLEND_64_W(a, b) ALPHA_BLEND_BASE(a, b, 1, 2)\n" +"#define ALPHA_BLEND_192_W(a, b) ALPHA_BLEND_BASE(a, b, 3, 2)\n" +"#define ALPHA_BLEND_224_W(a, b) ALPHA_BLEND_BASE(a, b, 7, 3)\n" +"\n" +"#define df(A, B) pixel_diff(A, B)\n" +"#define eq(A, B) (df(A, B) < 155u)\n" +"\n" +"#define FILT2(PE, PI, PH, PF, PG, PC, PD, PB, PA, G5, C4, G0, D0, C1, B1, F4, I4, H5, I5, A0, A1, \\\n" +" N0, N1, N2, N3) do { \\\n" +" if (PE != PH && PE != PF) { \\\n" +" uint e = df(PE,PC) + df(PE,PG) + df(PI,H5) + df(PI,F4) + (df(PH,PF)<<2); \\\n" +" uint i = df(PH,PD) + df(PH,I5) + df(PF,I4) + df(PF,PB) + (df(PE,PI)<<2); \\\n" +" if (e <= i) { \\\n" +" uint px = df(PE,PF) <= df(PE,PH) ? PF : PH; \\\n" +" if ((e < i) && ((!eq(PF,PB) && !eq(PH,PD)) || (eq(PE,PI) \\\n" +" && (!eq(PF,I4) && !eq(PH,I5))) \\\n" +" || eq(PE,PG) || eq(PE,PC))) { \\\n" +" uint ke = df(PF,PG); \\\n" +" uint ki = df(PH,PC); \\\n" +" bool left = ke<<1 <= ki && PE != PG && PD != PG; \\\n" +" bool up = ke >= ki<<1 && PE != PC && PB != PC; \\\n" +" if (left && up) { \\\n" +" E[N3] = ALPHA_BLEND_224_W(E[N3], px); \\\n" +" E[N2] = ALPHA_BLEND_64_W( E[N2], px); \\\n" +" E[N1] = E[N2]; \\\n" +" } else if (left) { \\\n" +" E[N3] = ALPHA_BLEND_192_W(E[N3], px); \\\n" +" E[N2] = ALPHA_BLEND_64_W( E[N2], px); \\\n" +" } else if (up) { \\\n" +" E[N3] = ALPHA_BLEND_192_W(E[N3], px); \\\n" +" E[N1] = ALPHA_BLEND_64_W( E[N1], px); \\\n" +" } else { /* diagonal */ \\\n" +" E[N3] = ALPHA_BLEND_128_W(E[N3], px); \\\n" +" } \\\n" +" } else { \\\n" +" E[N3] = ALPHA_BLEND_128_W(E[N3], px); \\\n" +" } \\\n" +" } \\\n" +" } \\\n" +"} while (false)\n" +"\n" +"#define FILT3(PE, PI, PH, PF, PG, PC, PD, PB, PA, G5, C4, G0, D0, C1, B1, F4, I4, H5, I5, A0, A1, \\\n" +" N0, N1, N2, N3, N4, N5, N6, N7, N8) do { \\\n" +" if (PE != PH && PE != PF) { \\\n" +" uint e = df(PE,PC) + df(PE,PG) + df(PI,H5) + df(PI,F4) + (df(PH,PF)<<2); \\\n" +" uint i = df(PH,PD) + df(PH,I5) + df(PF,I4) + df(PF,PB) + (df(PE,PI)<<2); \\\n" +" if (e <= i) { \\\n" +" uint px = df(PE,PF) <= df(PE,PH) ? PF : PH; \\\n" +" if (e < i && ((!eq(PF,PB) && !eq(PF,PC)) || (!eq(PH,PD) && !eq(PH,PG)) || (eq(PE,PI) \\\n" +" && ((!eq(PF,F4) && !eq(PF,I4)) || (!eq(PH,H5) && !eq(PH,I5)))) \\\n" +" || eq(PE,PG) || eq(PE,PC))) { \\\n" +" uint ke = df(PF,PG); \\\n" +" uint ki = df(PH,PC); \\\n" +" bool left = ke<<1 <= ki && PE != PG && PD != PG; \\\n" +" bool up = ke >= ki<<1 && PE != PC && PB != PC; \\\n" +" if (left && up) { \\\n" +" E[N7] = ALPHA_BLEND_192_W(E[N7], px); \\\n" +" E[N6] = ALPHA_BLEND_64_W( E[N6], px); \\\n" +" E[N5] = E[N7]; \\\n" +" E[N2] = E[N6]; \\\n" +" E[N8] = px; \\\n" +" } else if (left) { \\\n" +" E[N7] = ALPHA_BLEND_192_W(E[N7], px); \\\n" +" E[N5] = ALPHA_BLEND_64_W( E[N5], px); \\\n" +" E[N6] = ALPHA_BLEND_64_W( E[N6], px); \\\n" +" E[N8] = px; \\\n" +" } else if (up) { \\\n" +" E[N5] = ALPHA_BLEND_192_W(E[N5], px); \\\n" +" E[N7] = ALPHA_BLEND_64_W( E[N7], px); \\\n" +" E[N2] = ALPHA_BLEND_64_W( E[N2], px); \\\n" +" E[N8] = px; \\\n" +" } else { /* diagonal */ \\\n" +" E[N8] = ALPHA_BLEND_224_W(E[N8], px); \\\n" +" E[N5] = ALPHA_BLEND_32_W( E[N5], px); \\\n" +" E[N7] = ALPHA_BLEND_32_W( E[N7], px); \\\n" +" } \\\n" +" } else { \\\n" +" E[N8] = ALPHA_BLEND_128_W(E[N8], px); \\\n" +" } \\\n" +" } \\\n" +" } \\\n" +"} while (false)\n" +"\n" +"#define FILT4(PE, PI, PH, PF, PG, PC, PD, PB, PA, G5, C4, G0, D0, C1, B1, F4, I4, H5, I5, A0, A1, \\\n" +" N15, N14, N11, N3, N7, N10, N13, N12, N9, N6, N2, N1, N5, N8, N4, N0) do { \\\n" +" if (PE != PH && PE != PF) { \\\n" +" uint e = df(PE,PC) + df(PE,PG) + df(PI,H5) + df(PI,F4) + (df(PH,PF)<<2); \\\n" +" uint i = df(PH,PD) + df(PH,I5) + df(PF,I4) + df(PF,PB) + (df(PE,PI)<<2); \\\n" +" if (e <= i) { \\\n" +" uint px = df(PE,PF) <= df(PE,PH) ? PF : PH; \\\n" +" if (e < i && ((!eq(PF,PB) && !eq(PH,PD)) || (eq(PE,PI) \\\n" +" && (!eq(PF,I4) && !eq(PH,I5))) \\\n" +" || eq(PE,PG) || eq(PE,PC))) { \\\n" +" uint ke = df(PF,PG); \\\n" +" uint ki = df(PH,PC); \\\n" +" bool left = ke<<1 <= ki && PE != PG && PD != PG; \\\n" +" bool up = ke >= ki<<1 && PE != PC && PB != PC; \\\n" +" if (left && up) { \\\n" +" E[N13] = ALPHA_BLEND_192_W(E[N13], px); \\\n" +" E[N12] = ALPHA_BLEND_64_W( E[N12], px); \\\n" +" E[N15] = E[N14] = E[N11] = px; \\\n" +" E[N10] = E[N3] = E[N12]; \\\n" +" E[N7] = E[N13]; \\\n" +" } else if (left) { \\\n" +" E[N11] = ALPHA_BLEND_192_W(E[N11], px); \\\n" +" E[N13] = ALPHA_BLEND_192_W(E[N13], px); \\\n" +" E[N10] = ALPHA_BLEND_64_W( E[N10], px); \\\n" +" E[N12] = ALPHA_BLEND_64_W( E[N12], px); \\\n" +" E[N14] = px; \\\n" +" E[N15] = px; \\\n" +" } else if (up) { \\\n" +" E[N14] = ALPHA_BLEND_192_W(E[N14], px); \\\n" +" E[N7 ] = ALPHA_BLEND_192_W(E[N7 ], px); \\\n" +" E[N10] = ALPHA_BLEND_64_W( E[N10], px); \\\n" +" E[N3 ] = ALPHA_BLEND_64_W( E[N3 ], px); \\\n" +" E[N11] = px; \\\n" +" E[N15] = px; \\\n" +" } else { /* diagonal */ \\\n" +" E[N11] = ALPHA_BLEND_128_W(E[N11], px); \\\n" +" E[N14] = ALPHA_BLEND_128_W(E[N14], px); \\\n" +" E[N15] = px; \\\n" +" } \\\n" +" } else { \\\n" +" E[N15] = ALPHA_BLEND_128_W(E[N15], px); \\\n" +" } \\\n" +" } \\\n" +" } \\\n" +"} while (false)\n" +"\n" +"uint xbr(ivec2 p, int n) {\n" +"ivec2 cell=p/n;\n" +"uint E[16];\n" +"int nl=n, nl1=n*2, nl2=n*3;\n" +"uint B1=pixel(cell+ivec2(0,-2));\n" +"uint PB=pixel(cell+ivec2(0,-1));\n" +"uint PE=pixel(cell+ivec2(0,0));\n" +"uint PH=pixel(cell+ivec2(0,1));\n" +"uint H5=pixel(cell+ivec2(0,2));\n" +"uint A1=pixel(cell+ivec2(-1,-2));\n" +"uint PA=pixel(cell+ivec2(-1,-1));\n" +"uint PD=pixel(cell+ivec2(-1,0));\n" +"uint PG=pixel(cell+ivec2(-1,1));\n" +"uint G5=pixel(cell+ivec2(-1,2));\n" +"uint A0=pixel(cell+ivec2(-2,-1));\n" +"uint D0=pixel(cell+ivec2(-2,0));\n" +"uint G0=pixel(cell+ivec2(-2,1));\n" +"uint C1=pixel(cell+ivec2(1,-2));\n" +"uint PC=pixel(cell+ivec2(1,-1));\n" +"uint PF=pixel(cell+ivec2(1,0));\n" +"uint PI=pixel(cell+ivec2(1,1));\n" +"uint I5=pixel(cell+ivec2(1,2));\n" +"uint C4=pixel(cell+ivec2(2,-1));\n" +"uint F4=pixel(cell+ivec2(2,0));\n" +"uint I4=pixel(cell+ivec2(2,1));\n" +" if (n == 2) {\n" +" E[0] = E[1] = // 0, 1\n" +" E[nl] = E[nl + 1] = PE; // 2, 3\n" +"\n" +" FILT2(PE, PI, PH, PF, PG, PC, PD, PB, PA, G5, C4, G0, D0, C1, B1, F4, I4, H5, I5, A0, A1, 0, 1, nl, nl+1);\n" +" FILT2(PE, PC, PF, PB, PI, PA, PH, PD, PG, I4, A1, I5, H5, A0, D0, B1, C1, F4, C4, G5, G0, nl, 0, nl+1, 1);\n" +" FILT2(PE, PA, PB, PD, PC, PG, PF, PH, PI, C1, G0, C4, F4, G5, H5, D0, A0, B1, A1, I4, I5, nl+1, nl, 1, 0);\n" +" FILT2(PE, PG, PD, PH, PA, PI, PB, PF, PC, A0, I5, A1, B1, I4, F4, H5, G5, D0, G0, C1, C4, 1, nl+1, 0, nl);\n" +" } else if (n == 3) {\n" +" E[0] = E[1] = E[2] = // 0, 1, 2\n" +" E[nl] = E[nl+1] = E[nl+2] = // 3, 4, 5\n" +" E[nl1] = E[nl1+1] = E[nl1+2] = PE; // 6, 7, 8\n" +"\n" +" FILT3(PE, PI, PH, PF, PG, PC, PD, PB, PA, G5, C4, G0, D0, C1, B1, F4, I4, H5, I5, A0, A1, 0, 1, 2, nl, nl+1, nl+2, nl1, nl1+1, nl1+2);\n" +" FILT3(PE, PC, PF, PB, PI, PA, PH, PD, PG, I4, A1, I5, H5, A0, D0, B1, C1, F4, C4, G5, G0, nl1, nl, 0, nl1+1, nl+1, 1, nl1+2, nl+2, 2);\n" +" FILT3(PE, PA, PB, PD, PC, PG, PF, PH, PI, C1, G0, C4, F4, G5, H5, D0, A0, B1, A1, I4, I5, nl1+2, nl1+1, nl1, nl+2, nl+1, nl, 2, 1, 0);\n" +" FILT3(PE, PG, PD, PH, PA, PI, PB, PF, PC, A0, I5, A1, B1, I4, F4, H5, G5, D0, G0, C1, C4, 2, nl+2, nl1+2, 1, nl+1, nl1+1, 0, nl, nl1);\n" +" } else if (n == 4) {\n" +" E[0] = E[1] = E[2] = E[3] = // 0, 1, 2, 3\n" +" E[nl] = E[nl+1] = E[nl+2] = E[nl+3] = // 4, 5, 6, 7\n" +" E[nl1] = E[nl1+1] = E[nl1+2] = E[nl1+3] = // 8, 9, 10, 11\n" +" E[nl2] = E[nl2+1] = E[nl2+2] = E[nl2+3] = PE; // 12, 13, 14, 15\n" +"\n" +" FILT4(PE, PI, PH, PF, PG, PC, PD, PB, PA, G5, C4, G0, D0, C1, B1, F4, I4, H5, I5, A0, A1, nl2+3, nl2+2, nl1+3, 3, nl+3, nl1+2, nl2+1, nl2, nl1+1, nl+2, 2, 1, nl+1, nl1, nl, 0);\n" +" FILT4(PE, PC, PF, PB, PI, PA, PH, PD, PG, I4, A1, I5, H5, A0, D0, B1, C1, F4, C4, G5, G0, 3, nl+3, 2, 0, 1, nl+2, nl1+3, nl2+3, nl1+2, nl+1, nl, nl1, nl1+1, nl2+2, nl2+1, nl2);\n" +" FILT4(PE, PA, PB, PD, PC, PG, PF, PH, PI, C1, G0, C4, F4, G5, H5, D0, A0, B1, A1, I4, I5, 0, 1, nl, nl2, nl1, nl+1, 2, 3, nl+2, nl1+1, nl2+1, nl2+2, nl1+2, nl+3, nl1+3, nl2+3);\n" +" FILT4(PE, PG, PD, PH, PA, PI, PB, PF, PC, A0, I5, A1, B1, I4, F4, H5, G5, D0, G0, C1, C4, nl2, nl1, nl2+1, nl2+3, nl2+2, nl1+1, nl, 0, nl+1, nl1+2, nl1+3, nl+3, nl+2, 1, 2, 3);\n" +" }\n" +"\n" +"\n" +"return E[(p.y%n)*n+p.x%n];\n" +"}\n" +"\n" +"void main() {\n" +"\tivec2 p=ivec2(gl_FragCoord.xy);\n" +"\tif (operation==0) { result=pixel(p/factors); return; }\n" +"\tif (operation==1) {\n" +"\t\tint n=factors.x, mid=n/2;\n" +"\t\tivec2 cell=p/n, sub=p%n;\n" +"\t\tuint center=pixel(cell);\n" +"\t\tivec2 edge=min(sub,ivec2(n-1)-sub);\n" +"\t\tif (edge.x+edge.y>16);\n" +"\tivec2 b=a;\n" +"\tb[axis]++;\n" +"\tint weight=int(pos&65535u);\n" +"\tif (axis==1 && repeatRows>1 && a.y/repeatRows==b.y/repeatRows)\n" +"\t\tweight=0;\n" +"\tresult=blend(pixel(a),pixel(b),weight);\n" +"}\n"; diff --git a/src/conio/sdl_con.c b/src/conio/sdl_con.c index 9230970a..3f294331 100644 --- a/src/conio/sdl_con.c +++ b/src/conio/sdl_con.c @@ -26,6 +26,7 @@ #define BITMAP_CIOLIB_DRIVER #include "bitmap_con.h" #include "scale.h" +#include "gpu_pointy.h" #include "SDL.h" @@ -76,6 +77,10 @@ int sdl_exitcode=0; bool internal_scaling = true; // Protected by the win mutex +static int sdl_upscale_mode = -1; // Last SDL_ScaleMode set on texture, -1 is none yet +static int sdl_texscale = 1; // Console->texture multiplier the live texture was built with +static int sdl_texreq = 0; // Pending texture rebuild scale, 0 is none + SDL_Window *win=NULL; SDL_Cursor *curs=NULL; SDL_Renderer *renderer=NULL; @@ -751,6 +756,7 @@ static void setup_surfaces(struct video_stats *vs) int idealmw; int idealmh; int new_win = false; + int texscale; assert_pthread_mutex_lock(&win_mutex); if(fullscreen) @@ -767,9 +773,16 @@ static void setup_surfaces(struct video_stats *vs) assert_pthread_mutex_lock(&win_mutex); idealw = vs->winwidth; idealh = vs->winheight; - sdl.SetHint(SDL_HINT_RENDER_SCALE_QUALITY, internal_scaling ? "0" : "2"); + /* Pointy bypasses this SDL texture and uses its own integer-texture passes. */ + sdl.SetHint(SDL_HINT_RENDER_SCALE_QUALITY, + (internal_scaling || (cio_api.options & CONIO_OPT_BLOCKY_SCALING)) ? "0" : "2"); + /* Hires-external (GPU + External look) keeps a 2x console texture so + * the smooth stretch has real detail instead of blurred pixels. */ + texscale = (!internal_scaling && (cio_api.options & CONIO_OPT_HIRES_EXTERNAL)) ? 2 : 1; if (win == NULL) { + if (cio_api.options & (CONIO_OPT_POINTY_EXTERNAL | CONIO_OPT_HIRES_EXTERNAL)) + sdl.SetHint(SDL_HINT_RENDER_DRIVER,"opengl"); // SDL2: This is slow sometimes... not sure why. new_win = true; if (sdl.CreateWindowAndRenderer(vs->winwidth, vs->winheight, flags, &win, &renderer) == 0) { @@ -782,7 +795,7 @@ static void setup_surfaces(struct video_stats *vs) newtexture = sdl.CreateTexture(renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, idealw, idealh); } else { - newtexture = sdl.CreateTexture(renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, vs->scrnwidth, vs->scrnheight); + newtexture = sdl.CreateTexture(renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, texscale * vs->scrnwidth, texscale * vs->scrnheight); } if (texture) @@ -819,13 +832,16 @@ static void setup_surfaces(struct video_stats *vs) newtexture = sdl.CreateTexture(renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, idealw, idealh); } else { - newtexture = sdl.CreateTexture(renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, vs->scrnwidth, vs->scrnheight); + newtexture = sdl.CreateTexture(renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_STREAMING, texscale * vs->scrnwidth, texscale * vs->scrnheight); } sdl.RenderClear(renderer); if (texture) sdl.DestroyTexture(texture); texture = newtexture; } + sdl_upscale_mode = -1; // Fresh texture takes the creation hint; re-applied below + sdl_texscale = texscale; // What the upload path must match from here on + sdl_texreq = 0; if (vs != &vstat) { assert_rwlock_wrlock(&vstatlock); vstat.winwidth = vs->winwidth; @@ -1488,6 +1504,7 @@ void sdl_video_event_thread(void *data) case SDL_USEREVENT_QUIT: sdl_ufunc_retval=0; + gpu_pointy_destroy(); sdl.QuitSubSystem(SDL_INIT_VIDEO); sdl_video_initialized = FALSE; sem_post(&sdl_ufunc_ret); @@ -1519,6 +1536,36 @@ void sdl_video_event_thread(void *data) int pitch; int row; int tw, th; + int ts, want; + + if (cio_api.options & CONIO_OPT_POINTY_EXTERNAL) { + static bool reported=false; + SDL_RendererInfo info; + const char *error="GPU Pointy requires SDL/OpenGL and SDL 2.0.10+. Restart with GPU enabled."; + bool ok=false; + if (sdl.GetRendererInfo && sdl.RenderFlush && sdl.GL_GetProcAddress + && sdl.GetRendererInfo(renderer,&info)==0 && strcmp(info.name,"opengl")==0) { + sdl.RenderClear(renderer); + if (sdl.RenderFlush(renderer)==0) { + ok=gpu_pointy_init(sdl.GL_GetProcAddress) + && gpu_pointy_scale(list->data,sw,sh,dst.w,dst.h) + && gpu_pointy_present(dst.w,dst.h,cvstat.winwidth,cvstat.winheight); + error=gpu_pointy_error(); + } + } + if (ok) { + reported=false; + sdl.RenderPresent(renderer); + } + else if (!reported) { + reported=true; + fprintf(stderr,"GPU Pointy unavailable: %s\n",error); + if (sdl.ShowSimpleMessageBox) + sdl.ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,"GPU Pointy unavailable",error,win); + } + bitmap_drv_free_rect(list); + continue; + } if (internal_scaling) { struct graphics_buffer *gb; @@ -1558,16 +1605,55 @@ void sdl_video_event_thread(void *data) release_buffer(gb); } else { + /* Hires-external works the upload at the live + * texture scale (1x, or 2x console pixels + * under GPU + External look). If the Scaling + * row just moved under an unchanged type, one + * async re-setup converges the texture; this + * frame still uploads safe. */ + ts = sdl_texscale; + want = (cio_api.options & CONIO_OPT_HIRES_EXTERNAL) ? 2 : 1; + if (want != ts && sdl_texreq != want) { + SDL_Event mev; + sdl_texreq = want; + mev.type = SDL_USEREVENT; + mev.user.code = SDL_USEREVENT_SETVIDMODE; + assert_rwlock_rdlock(&vstatlock); + mev.user.data1 = (void *)(intptr_t)vstat.winwidth; + mev.user.data2 = (void *)(intptr_t)vstat.winheight; + assert_rwlock_unlock(&vstatlock); + sdl.PeepEvents(&mev, 1, SDL_ADDEVENT, SDL_FIRSTEVENT, SDL_LASTEVENT); + } src.x = 0; src.y = 0; - src.w = list->rect.width; - src.h = list->rect.height; + src.w = list->rect.width * ts; + src.h = list->rect.height * ts; if (sdl.QueryTexture(texture, NULL, NULL, &tw, &th) != 0) fprintf(stderr, "Unable to query texture (%s)\n", sdl.GetError()); + if (src.w > tw) + src.w = tw; + if (src.h > th) + src.h = th; sdl.RenderClear(renderer); if (sdl.LockTexture(texture, &src, &pixels, &pitch) != 0) fprintf(stderr, "Unable to lock texture (%s)\n", sdl.GetError()); - if (pitch != list->rect.width * sizeof(list->data[0])) { + if (ts > 1) { + int drow; + for (drow = 0; drow < src.h; drow++) { + uint32_t *rp = (uint32_t *)((char *)pixels + (size_t)drow * (size_t)pitch); + int srow = drow / 2; + int col; + if (srow >= list->rect.height) + break; + for (col = 0; col < src.w; col++) { + int scol = col / 2; + if (scol >= list->rect.width) + scol = list->rect.width - 1; + rp[col] = list->data[(size_t)srow * (size_t)list->rect.width + (size_t)scol]; + } + } + } + else if (pitch != list->rect.width * sizeof(list->data[0])) { // If this happens, we need to copy a row at a time... for (row = 0; row < list->rect.height && row < th; row++) { if (pitch < list->rect.width * sizeof(list->data[0])) @@ -1588,6 +1674,24 @@ void sdl_video_event_thread(void *data) dst.x = (cvstat.winwidth - dst.w) / 2; dst.y = (cvstat.winheight - dst.h) / 2; } + /* SDL stretches Blocky/External; Pointy was presented above. */ + if (sdl.SetTextureScaleMode != NULL) { + double scx = (double)dst.w / (double)src.w; + double scy = (double)dst.h / (double)src.h; + double ddx = fabs(scx - floor(scx + 0.5)); + double ddy = fabs(scy - floor(scy + 0.5)); + int exact = (dst.w == src.w && dst.h == src.h); + int fmode = (exact + || ((cio_api.options & CONIO_OPT_BLOCKY_SCALING) + && scx >= 0.98 && scy >= 0.98 && ddx < 0.02 && ddy < 0.02)) + ? SDL_ScaleModeNearest : SDL_ScaleModeBest; + if (fmode != sdl_upscale_mode) { + if (sdl.SetTextureScaleMode(texture, fmode) == 0) + sdl_upscale_mode = fmode; + else + fprintf(stderr, "SetTextureScaleMode() failed! (%s)\n", sdl.GetError()); + } + } if (sdl.RenderCopy(renderer, texture, &src, &dst)) fprintf(stderr, "RenderCopy() failed! (%s)\n", sdl.GetError()); sdl.RenderPresent(renderer); @@ -1805,7 +1909,12 @@ sdl_setscaling_type(enum ciolib_scaling newval) update_cvstat(&cvstat); assert_rwlock_rdlock(&vstatlock); - if ((newval == CIOLIB_SCALING_INTERNAL) != internal_scaling) { + /* Rebuild when the type flips -- or when the hires expectation did + * under an unchanged type (the Scaling row moved with GPU on): the + * texture size is part of the mode, not just internal/external. */ + if ((newval == CIOLIB_SCALING_INTERNAL) != internal_scaling + || ((newval != CIOLIB_SCALING_INTERNAL) + && (((cio_api.options & CONIO_OPT_HIRES_EXTERNAL) ? 2 : 1) != sdl_texscale))) { internal_scaling = (newval == CIOLIB_SCALING_INTERNAL); w = vstat.winwidth; h = vstat.winheight; diff --git a/src/conio/sdlfuncs.c b/src/conio/sdlfuncs.c index 2a06f5bd..4b06946a 100644 --- a/src/conio/sdlfuncs.c +++ b/src/conio/sdlfuncs.c @@ -98,6 +98,13 @@ int load_sdl_funcs(struct sdlfuncs *sdlf) * run at all, but a terminal without pointer capture is still a * terminal. The caller checks for NULL and does without. */ sdlf->SetRelativeMouseMode=xp_dlsym(sdl_dll, SDL_SetRelativeMouseMode); + /* Not fatal if missing: without it the upscale filter stays whatever + * the texture-creation hint selected (SDL older than 2.0.12). */ + sdlf->SetTextureScaleMode=xp_dlsym(sdl_dll, SDL_SetTextureScaleMode); + sdlf->GL_GetProcAddress=xp_dlsym(sdl_dll, SDL_GL_GetProcAddress); + sdlf->RenderFlush=xp_dlsym(sdl_dll, SDL_RenderFlush); + sdlf->GetRendererInfo=xp_dlsym(sdl_dll, SDL_GetRendererInfo); + sdlf->ShowSimpleMessageBox=xp_dlsym(sdl_dll, SDL_ShowSimpleMessageBox); if((sdlf->WasInit=xp_dlsym(sdl_dll, SDL_WasInit))==NULL) { xp_dlclose(sdl_dll); return(-1); diff --git a/src/conio/sdlfuncs.h b/src/conio/sdlfuncs.h index e6447949..10d767b8 100644 --- a/src/conio/sdlfuncs.h +++ b/src/conio/sdlfuncs.h @@ -41,6 +41,15 @@ struct sdlfuncs { int (HACK_HACK_HACK *UpdateTexture) (SDL_Texture *texture, const SDL_Rect * rect, const void *pixels, int pitch); int (HACK_HACK_HACK *RenderClear) (SDL_Renderer *renderer); int (HACK_HACK_HACK *RenderCopy) (SDL_Renderer *renderer, SDL_Texture *texture, const SDL_Rect *srcrect, const SDL_Rect *dstrect); + /* Per-frame upscale filter (SDL 2.0.12+): whole-number zoom stays + * pixel-crisp, anything else takes the smooth stretch. Loaded + * NULL-tolerant like SetRelativeMouseMode above -- older SDL2 just + * keeps the creation-hint filter. */ + int (HACK_HACK_HACK *SetTextureScaleMode)(SDL_Texture *texture, SDL_ScaleMode scaleMode); + void *(HACK_HACK_HACK *GL_GetProcAddress)(const char *name); + int (HACK_HACK_HACK *RenderFlush)(SDL_Renderer *renderer); + int (HACK_HACK_HACK *GetRendererInfo)(SDL_Renderer *renderer, SDL_RendererInfo *info); + int (HACK_HACK_HACK *ShowSimpleMessageBox)(Uint32 flags, const char *title, const char *message, SDL_Window *window); SDL_bool (HACK_HACK_HACK *SetHint) (const char *name, const char *value); const char * (HACK_HACK_HACK *GetHint) (const char *name); SDL_Keymod (HACK_HACK_HACK *GetModState) (void); diff --git a/src/conio/test-gpu-pointy.c b/src/conio/test-gpu-pointy.c new file mode 100644 index 00000000..352256cf --- /dev/null +++ b/src/conio/test-gpu-pointy.c @@ -0,0 +1,123 @@ +#include +#include +#include +#include +#include +#include "ciolib.h" +#include "scale.c" +#include "gpu_pointy.h" + +cioapi_t cio_api; + +static void require(bool ok) +{ + if (!ok) { + fprintf(stderr,"FAIL: %s / %s\n",gpu_pointy_error(),SDL_GetError()); + exit(1); + } +} + +int main(void) +{ + require(SDL_Init(SDL_INIT_VIDEO)==0); + SDL_SetHint(SDL_HINT_RENDER_DRIVER,"opengl"); + SDL_Window *window=SDL_CreateWindow("Pointy reference",0,0,1280,720,SDL_WINDOW_HIDDEN|SDL_WINDOW_RESIZABLE); + require(window!=NULL); + SDL_Renderer *renderer=SDL_CreateRenderer(window,-1,SDL_RENDERER_ACCELERATED); + require(renderer!=NULL); + require(SDL_RenderClear(renderer)==0 && SDL_RenderFlush(renderer)==0); + const GLubyte *(APIENTRY *getString)(GLenum)=SDL_GL_GetProcAddress("glGetString"); + printf("OpenGL: %s / %s\n",getString(GL_VERSION),getString(GL_RENDERER)); + require(gpu_pointy_init(SDL_GL_GetProcAddress)); + const int w=17,h=13; + uint32_t data[w*h]; + struct rectlist rect={0}; + rect.rect.width=w; rect.rect.height=h; rect.data=data; + int cases[][2]={{17,13},{34,26},{51,39},{68,52},{85,65},{119,91},{153,117}, + {204,156},{170,130},{238,182},{102,39},{51,78},{41,33},{57,44},{111,80}, + {1920,1080},{640,480},{35,13},{17,27},{19,29}}; + for (int pattern=0;pattern<4;pattern++) { + for(int y=0;y8 && y>6)) ? 0xffffffff:0xff000000; + if(pattern==1) v=((x+y)%3)*0x553311u; + if(pattern==2) v=((x*51+y*97)&255)*0x010101u; + if(pattern==3) v=0xff000000u | ((x*17477u+y*89937u)*153u & 0xffffffu); + data[y*w+x]=v; + } + for (unsigned i=0;idata[p]) { + fprintf(stderr,"Mismatch pattern %d %dx%d pixel %d: GPU %08x CPU %08x\n",pattern,dw,dh,p,actual[p],expected->data[p]); + return 1; + } + } + free(actual); + release_buffer(expected); + } + } + puts("PASS: GPU equals CPU bit-for-bit, 80 pattern/size cases including 1920x1080"); + // Exercise the same shared SDL/GL context and centered presentation as SyncTERM. + void (APIENTRY *readPixels)(GLint,GLint,GLsizei,GLsizei,GLenum,GLenum,void *)=SDL_GL_GetProcAddress("glReadPixels"); + for (int frame=0;frame<8;frame++) { + int ww=frame%2 ? 800:1280, wh=frame%2 ? 600:720; + if (frame==2) + require(SDL_SetWindowFullscreen(window,SDL_WINDOW_FULLSCREEN_DESKTOP)==0); + if (frame==4) + require(SDL_SetWindowFullscreen(window,0)==0); + SDL_SetWindowSize(window,ww,wh); + SDL_PumpEvents(); + require(SDL_GetRendererOutputSize(renderer,&ww,&wh)==0); + require(SDL_SetRenderDrawColor(renderer,0,0,0,255)==0); + require(SDL_RenderClear(renderer)==0 && SDL_RenderFlush(renderer)==0); + require(gpu_pointy_scale(data,w,h,w,h)); + require(gpu_pointy_present(w,h,ww,wh)); + uint32_t screen[w*h]; + readPixels((ww-w)/2,(wh-h)/2,w,h,GL_BGRA,GL_UNSIGNED_BYTE,screen); + for (int y=0;ydata; } else { - if (di == NULL || diw != vsw || dih != vsh) { + /* Hires-external (GPU toggle + External look) works a 2x console + * DIB so the smooth stretch has real detail; the Scaling row stays + * live under the GPU toggle. Anything else keeps the 1x DIB. */ + int hires = (cio_api.options & CONIO_OPT_HIRES_EXTERNAL) ? 1 : 0; + int dw, dh; + if (hires) { + size_t need = (size_t)vsw * 2 * (size_t)vsh * 2 * sizeof(gdi_hires[0]); + if (gdi_hires == NULL || gdi_hires_sz < need) { + free(gdi_hires); + gdi_hires = malloc(need); + gdi_hires_sz = (gdi_hires == NULL) ? 0 : need; + } + if (gdi_hires == NULL) + hires = 0; + } + dw = hires ? vsw * 2 : vsw; + dh = hires ? vsh * 2 : vsh; + if (di == NULL || diw != dw || dih != dh) { if (di != NULL) { DeleteObject(di); di = NULL; } - diw = vsw; - b5hdr.bV5Width = vsw; - dih = vsh; - b5hdr.bV5Height = -vsh; - b5hdr.bV5SizeImage = vsw * vsh * 4; + diw = dw; + b5hdr.bV5Width = dw; + dih = dh; + b5hdr.bV5Height = -dh; + b5hdr.bV5SizeImage = dw * dh * 4; + } + sw = dw; + sh = dh; + if (hires) { + int y; + for (y = 0; y < vsh; y++) { + int x; + for (x = 0; x < vsw; x++) { + uint32_t p = list->data[(size_t)y * (size_t)vsw + (size_t)x]; + size_t o = ((size_t)y * 2) * (size_t)dw + (size_t)x * 2; + gdi_hires[o] = p; + gdi_hires[o + 1] = p; + gdi_hires[o + (size_t)dw] = p; + gdi_hires[o + (size_t)dw + 1] = p; + } + } + data = gdi_hires; } - sw = vsw; - sh = vsh; - data = list->data; + else + data = list->data; } assert_pthread_mutex_lock(&off_lock); if (maximized || fullscreen) { @@ -405,9 +440,22 @@ gdi_handle_wm_paint(HWND hwnd) assert_pthread_mutex_lock(&off_lock); if (st == CIOLIB_SCALING_INTERNAL) BitBlt(winDC, xoff, yoff, dwidth, dheight, memDC, 0, 0, SRCCOPY); + else if (dwidth == sw && dheight == sh) + /* 1:1 needs no resampling: BitBlt is pixel-exact where even a + * HALFTONE StretchBlt can smear (at 100% scale under any mode). */ + BitBlt(winDC, xoff, yoff, dwidth, dheight, memDC, 0, 0, SRCCOPY); else { - SetStretchBltMode(winDC, HALFTONE); - SetBrushOrgEx(winDC, 0, 0, NULL); + /* GPU Pointy uses SDL/OpenGL; this is the GDI external stretch. */ + double sxx = (double)dwidth / (double)sw; + double syy = (double)dheight / (double)sh; + double ddx = fabs(sxx - floor(sxx + 0.5)); + double ddy = fabs(syy - floor(syy + 0.5)); + if ((cio_api.options & CONIO_OPT_BLOCKY_SCALING) && sxx >= 0.98 && syy >= 0.98 && ddx < 0.02 && ddy < 0.02) + SetStretchBltMode(winDC, COLORONCOLOR); + else { + SetStretchBltMode(winDC, HALFTONE); + SetBrushOrgEx(winDC, 0, 0, NULL); + } StretchBlt(winDC, xoff, yoff, dwidth, dheight, memDC, 0, 0, sw, sh, SRCCOPY); } // Clear around image diff --git a/src/syncterm/fonts.c b/src/syncterm/fonts.c index 7799bfad..052d8356 100644 --- a/src/syncterm/fonts.c +++ b/src/syncterm/fonts.c @@ -6,6 +6,7 @@ #include "ciolib.h" #include "fonts.h" +#include "theme.h" #include "gen_defs.h" #include "ini_file.h" #include "syncterm.h" @@ -259,6 +260,21 @@ load_font_files(void) font_names[i] = ""; } +/* Switch the console to the configured dialer/menu font. Unknown names + * fall back to id 0 (Codepage 437 English), same as connections do. + * The Wren UI paints from theme styles (not the conio current font), + * so a real change also refreshes the theme: the pushed "default" role + * follows the menu font and Theme.current rebuilds on next access. */ +void +apply_menu_font(void) +{ + int id = find_font_id(settings.menu_font); + if (id == getfont(1)) + return; + setfont(id, true, 1); + syncterm_theme_refresh(); +} + int find_font_id(char *name) { diff --git a/src/syncterm/fonts.h b/src/syncterm/fonts.h index df8da604..fc98c1ec 100644 --- a/src/syncterm/fonts.h +++ b/src/syncterm/fonts.h @@ -18,5 +18,8 @@ bool save_font_files(struct font_files *fonts); struct font_files *read_font_files(int *count, bool *success); void load_font_files(void); int find_font_id(char *name); +/* Built-in dialer/menu font and the setting default that selects it. */ +#define MENU_FONT_DEFAULT "SyncTERM Menu" +void apply_menu_font(void); #endif // ifndef _SYNCTERM_FONTS_H diff --git a/src/syncterm/fonts/menufont.f14 b/src/syncterm/fonts/menufont.f14 new file mode 100644 index 0000000000000000000000000000000000000000..5e8dad593bca11f146dba5c38ad2ad2541c7f425 GIT binary patch literal 3584 zcmZuzKa1Q(6qjvKCDvPt++sIZxD*K-B8WZX@8Bkt@EOI$5UyGlB6N36s?-60fHeLN zhUG2{Da4h_!Y<2Iw~a9ifw09Q<@f%KG%|U&C(Uo(oA-C-je=lE)y$bhywSofEfXZ|%OU7y0gE-4}yImZMWSmuPTR8-Auwz-(f_8V%3F4Woc=M*nc!;UH zkDot(yc6DZ^xgOKx~}IcR}@(crHsyhI8Tz~a{s{S>f-9+;^ODs|wd z!=X7mEUt+aJPk+FW;zO=GJ>Bmyj0%`rl2U8ceP%xe?0*)Ds7$`YtqP;jOl@7@VL{$ z!3%;~;bG8QfNxO~X(qr=@+MDMjvtG~LNpS3Wg7F!@y2OdmTHa+mu2e8;6&t&L}xH9 z))CLC$2QQ&|1=lJrCpSvE!ENB)<$tsSe8$XNoSk7o)JQxbDot4q=@2(A>Kr>i=xQd zO!7x;MDEnfV$5`+K_6?!VHP4JmW(Eu zshcQz!KguQj~y?~fvi=@hP5CjmMm$$ z_x-x9Eq-JK-E2TCV6!k~%zMGbbSLhyFlKH{@yNV=PUI}uuT6uhsGs)n-)4L75QPBJ zig65BDZWrX?Q&a2BT~vd#32^I%W=T8DpmE9=NT;{k}S#C=n){aTsEa)Kgn=PE-<1T zQH&B_V}Hlay4C%X@kUM(;h|4lrW4m0GR{O4F^`JE+P;0DgW)86Gdqt;JvqTcp3kXF z;x*)O<`x>m1j-G%8=o;!QQF4wQu98id`r&2n?bOQxD!IBnL(%I44WvWG)W9$7>q&? zV#Xp!7AT-fvREex_LpY4Ty}A7pi(;@`_knah@!Z~t-?t5dC=78QnJfOh~^Uiyp^c4(3#Rx#q$7{ zY$(h8xsJB-!(MT;Wd>J#g{6kcm6%KRVeure?tM)xm$<70}j zCznr|*$?RXfOL&6;MZ)kT5a4tR@$Sr$Hn3`Sm;6GC5r*$`xC^dv1lAPNYcwOg|4*X zBTa0&9&qI>XpHM`Lw!)rN`GWHJn+*(nW!?*Xbxlc@5gyfg?N0Tx5a6Fm z4NQ_8Eiz9gBFQ}iT}u!glpjO=q?O9+XPx#6G#`W%DH@%iPYKb7FjE&FVyWB*Ak?D$ q;K#(>MuzUGfp<^`&-oMOi^r~UoPZlvk9*cV&J zf4RClbcegur6os?^QB^Vh{dT+k)fDo=FHJG3BW zj5&RrAdAC<(DCToL%NbK5h^idWmjg*ZI;z)CE5vpsXFy?pilF>uAO;urLOa#d;_C> zLU9T>BmN-TlYm7*yZJGDTI*FE>skb&=vpUfR%w>XmC6^pwp~~pwJDim7w{6K3Gd>G zARQvCioTF+6BDvC7-K1B=3USbD8dFk#G>Q~-B=Yi$Iy=mZ`Y zF#=}(WLBuQOOoe|cc{kEqvs`XtsQ@7^dVyAuZiZ->A8vHWXW_}2`^ytID~7WDTn+) ztTA7fCz6R^u$MrEQwV#vx3{~M#51LYbZ~KYMVy9PZd(-7*w^sajQ zZu#zQCHb;=Sw8skx4QbCaac0u#2yZxfr9DJ&2bp|{k~FasZ@2(^oNpQu&2Lv9qQ@) z*Z2Q)x1R@`!UMQ^oA{tX{G5)Zi1@hcbK45k$3G50qqt93WfbM<3MHIn>-z5sij@C1i`wSa!f zFAio-36=QbIGV%&WQBB-KNSvu<2TG6KUltW>-E};dI$AxUW0B*?8QU$+Vjx*=Q=vt zEh>*n@)t7~|1`^vD9P!JoU?%Nf_#v5_x=EjIRH|B!f^upD$x;X;zT+s>RQZG>8A-| zy}*x;CmPvwv+HL=BOZ2UvEv7~*bW!e^fTHyiET#OHuC+)cnRtW;qZKb-#;%HHvyib z(R@107F9{+3gZFk3(gDl`8etGaeDFQ6tfk_T_VJZ-=}MB!;B08+S`zOLmt}p@MnA5wjA%|nR$Jt>Bb%q#2?g$>h0%`=ze^J z2ma%H`TYeH6PE_A^`}s3PA?<@x(-B=JKDsH5LW^hpW&l-sCnQ&9r|DJSGwI~UwF&cf|d<;Hs`tUOy!6SxV9?S}iH=Z!` zvWAS0`aV=>*}%;LCnGpJ8*K#W*;(KQv|k3$_Ya}DG4^7#F?Me%>O`?*Rj%$LFJW1J zaI*mFYM|#eaR1~82zNq^{znLRoHkZy{ed^^kmZID%ZYz>9cw#*{t-uL?nLS-<>WAA zfxKjhBNqy<|L+fsj_k4*4=+M@rj!96T>g3UVFXV{AhIH7*TrtL*$waSS|7DOu2!!M z6_e6BZ+Y>T?*9PBJB^Ws2A1~|wlO_7JYI;2UVnJKuIQOyv7`Ad{n=oknVDsY<~|Oa z?tW&*A6mS(#hCd`u<=--VqH_J+l_cEIaznNy3u!6&J`{fP(_d<>| zU!UC!!+=DOOD%+hv=!f-hEL8$FuQk U0j>)S$G;AaogQif!ImKZ0<-DGg8%>k literal 0 HcmV?d00001 diff --git a/src/syncterm/fonts/menufont.f8 b/src/syncterm/fonts/menufont.f8 new file mode 100644 index 0000000000000000000000000000000000000000..9cd230e89a497d99c8d9100281a42ebb271b28ca GIT binary patch literal 2048 zcmYjSJC58q5T&sS7zkJf3xh$!W)^| zN16jHpnb1O@=U3v$12vJpLXt~`}-#jx7+P`i_Vp8YXIk@NdUz5tbA-+RJl{QLH!vY z7~~B3?e_1}69jJjORiVgO*yLK#}MiZ_^)5TeCad&HT5^YtS?~QaA}tT2yNBRIlB!0 zcKhekCt#|jL@yX2M}X=f;HiJ2^UbSLlB($DS+TUD7^Q6(Y)vBTI*C!iBdU?K(ilc& z83b|MgAbe&X{;+8&Rq;4a5{SLiRf1&z*1Qqz7GTe*};dzxzc-QVrTy27;6VV4wqq~ zT&@=uG|#K@X)WPr&bp^;{uVfrk@00x z{S-&m+2|OEHff!J$@qoaz%3Gmdf0ucx1g`g2g{=UnQI&e@XQPS2?gUfYN}&AI*mc9 zqV==m^y49>9FdflRJDHRu2;c+OsVOf!7kAF16FRpNk~bA^)r3uiygNyPgcnKxN;{C zpWx|l1h&I}inI^4h6|AMmWQ4*@aUwHeS||Es{dhF2!4QYWHp`m!|%cCLmjL)nbX&hLO{`4Trg1SWvLv5*Q zKc*%t@+sF%&lmh^e;%w)^h>@L%M-ly;{iJZb$6Nc9CdCK=*5TyKzv;;uH%IB2!4gt zfm_Kn<*nUB{(9=MKCULj1I_cjBGw<+uQiSSLYywx zf#~09DXNBh75MXfzWvna+is6;Uwl4*c7FK9?+?(<*MuMT-85B-37l4?ySsBlyt`8u z(Eg#c@2_V7!_NnMx(igJGE?30a-N}7iiuyK9j`_C5A;6X4l-V~pr~HpC}&LIXYo$0 z4E;lLxM7_jh9F^H6aR4v-u%Guu!V=$&*mmD1Cr(sd_CyTgU&h3uj@*!vh{W5DF>04 zQh2U<4SF9_?}hT5?SP7{XKY#j$8ehT9xr`SyAUtOJ+kTl!O*_91oMFVllL$0KkiEe z!UMVO4*rjD+Qk|?@q#cXF+TPYUXYoIZ6*p-$^mJ_ZCB#&DqO9J)*zg`Hyigqf|g2# literal 0 HcmV?d00001 diff --git a/src/syncterm/fonts/perfdos.f14 b/src/syncterm/fonts/perfdos.f14 new file mode 100644 index 0000000000000000000000000000000000000000..dc12294ee7cc08d6ec765815b6934a3f9fce158c GIT binary patch literal 3584 zcmZu!y=xmu6rX$`TrAF3$8r%D6)sX-G29(tip2^ch5vy-NVQ<0bFqagv&EvwU5fkz z>3vP=YXb`wBE=TzvS4wjiW+kWuDC50?fu@ze(1=vJu`3KoA*6$*2Wyd{OXUZt4|-U z=Da9%NCAMxpeERg^MrfzUKmI}|6Xlyu!vI1V8~-}C*3Nbt#@?R4JwHGHefupVGzf0P zZFsAki)>Tw%T2Z*lDR)PKHZ-l5AHJtI|Eo5ip(j4nNC3q87i4zolBe%JNO_E2*#ll zc3xyctkAING{81*?+Jy-HrhuV73MWrmWf0{pT_(6sq7o$JC~-a&KM*ibxj%?7MUHu z_l=||j^hJrQY8ugXwP@aGAlgqeWh|1%OijE{Jly^Tv`-GH6nCmBbpir5O;t&VcEZ+ zb>d~ZcP|@O4WdLtfuM{Xx*|tBwH3jc2qk}5g0qOKEOF9CY~3Jo@Z6rU?F)V z8UmLTRS*o1m{w(3+0iU8$W+eiy?5lpCDDh9t2!F6)bl(y5+a+}nkkr`GhSdL8+giS zQbWHAL;zW^B=>?gN5)q9dc7`65o1;Tf?3NrPLRZE$Cz89K(b{j`avToH%zN0(QFn? zG!lYE8==v;HT+;kL%!iJUoeVd;dqM7A!V~D$`RA+3Y3VH5ur+E+Fl4Mq<2JYCL*$zK zH?k#MupzTy_)I=XM*+5^q>(!ez>vTeJF~rzGiMcga>uIzok8va^F=kSJ`O^89 z0{gNXiKs~lQyR-4Ge1Kc{>-${1|b5kcRF>H1+;Lcp))Wn7;{lX_oyi)lh$ABlqoXE zYlfAfBBeCq5E=QT*No=9< zuHEP@`r73KfFJ)L2&YkmH$5O;7f+%c{QD+lAaA|C_GO-z%lxlAUlFHGO#hB0R9A@8 zf@pZ(5tn~c&5=RR9R)`kPolT}(3(DFT3T)TF*6lz5gpJk0WAp}EQQvQ z_N$dxsat#MJ^IY-S9or5k=ifbIbGx#ILXYN-Kn*7^m5J5F-w`FZE$yBj2roC#qS+8 zkrmc){5R8nLeDxSUdAxYZ*S+ielP&?&m3KlU}&Q#MQQEY5DW&&uQ6}_yncP1 zyngrY?Cko@H8;fpzUz!gZ9V`6JAV9Fzah}ybS3^lEPCFY28GKtT;#RR-Ippb1Gw*ZWd-LYaNQkdscJ=Gk z)u;DYGvdtJ+qS*lw2X_S0c1L4%}{4PDx+w#*+|LqGMcsR%;B*L(*jT{tKR}P*RT&D zi_zr8i%CQX$k*>beR_Y*{NuxKzc&_ACq0=&5(^MM{$Z??nr_#Gzd3tzc6Rpj=1Xn~ zQr4^L5o!>wIq6;{M?9xH&!?+$S9VOL!l#{YeL6GU@owA_H~z9X&H7ood0p zkqHb)86nOdCCK7fg87*G>j@!)CSa}+QgIVg_N-2x=WN{&o+eH5)N;&ssCAaP<&7&@ zrgz)76SOl82t&c!nCZQaIg7acoVdt@`Ey{H5Mewm0_p9qP<63dt;&iGDspH}3RRM%D1v%RxL%;#@r_=b{<;&vnn)yb5g&0X(nAq`O%!z>F>+;X`ho&CNvKkTp4*pCplDnMn zb!=d_UQyRQd&ON{V?Add;TdrIVd8@U=bz=TYE2n6d?diFR~08nXi?DeB116(T={p_ zJ^L0Ndg}Z`F3kaS_E0aVzlF=EHm3!^`4RKn?C?Xjr|tQXmanuk z%mO^xma#i{Oc&EM-JMslj;9De$y@*;El>b1erXPXCojOq8E}04BTf_=^2pgghj>}( z(zcLwe38Mv%P&r{^79!8oCX7lJ(279{9>A3IC&!saQPDArba<~VV5xPcd>4V-Tn*F z@v~{XCJ)I!IV8Ny60bf?e6il0|BN_s{SM@X*>W3fCj=Y?u#;b$s@^tr z@^ut&$Ei#7E4Tl{Ff<)X9*}`9dVI0HX&4T1z}3hSvXU8Y40W-}h!6)*G zCqMj#5DeCOh<5AJkLy_m2WrIr9-8A=rFay0z?vSZH|_f)gn1kpfRL2YB#!aokyb+| z=kXTtf8m0%uOasys*0jo6n_@Q(#orJ?|i4GT9MJY<>UQ>{QZ-;{S~-7M)H8;>7=}9 zfrsWX= z{|L8Y-KX?1a|HSnYX;WHp!EmdkV94)N~FjB*>T_65$x|t^p`v0{p9VWFnEAIXNV$a z4vqiq4;I~9m%P}1y&)zCJ8=0Y(smCX?E!1Do*ge&Wx2ZS=2pOGH_N4U-VqzqAKiu8 zEb;un0rq}@%uGv}cJd~Wt=dvN*2Lwid!mrN85&yGvk31lr{$7vd)z;`td>~rFXDfP z{(5XQ2*)tHy`4Gi!2syrv#xs^;!wqLhWla25*h3nU>uIyKSMbA?ZfL2>Fc*|PftJm z^oyZjxdGnKf>+?@HsgnnAJdDg>&P_c_+bE@dS<>HT&@KE{ts%~Al*Ie;g7nv&|MNy cJbRCuKbmGXGe6KVHsoT~0j-B00^a-XU*-<500000 literal 0 HcmV?d00001 diff --git a/src/syncterm/fonts/perfdos.f8 b/src/syncterm/fonts/perfdos.f8 new file mode 100644 index 0000000000000000000000000000000000000000..f0bd8f251e7c4e27c2cf974f5e1ef9c0941f5343 GIT binary patch literal 2048 zcmZvdJ!&IC5QW>Uf(Z=U!Lm#sa0i3wz(Gf*g8`epgTbK!VH7A(v?vh5=kY1_NIt;A z?Dwj=Z5g&kGd1=1>h<3!gf5Sd&w4$b&o8GjgnT;9s1WL0BWj#q%pT{{D1Qt&=Mc`M zzwn@7n(&{`zn-6QgzF!5wv#bfB9?4V;-w-CGpAw5 z3ZxJO9Bb9MEf>X$GmFD8I9?SU3QU{RcI(Z}Pt)}*qAQ!^L#km!gm_zSwGlH`|8XyQ=#>@WW6 zC)&!V%6I`|b-+5$Hh*fD$*bA%WL5yxU;doJVDW~lxcO1)gVOqhTw`^=_wVzkGUbKj z10Es9{6^*eUq-`E&=#&{T)6{ouc>B_9Tx`T%jhiL`_aZ0Dy33X*Zqvlcp7uTYXnVK zn^EBb$P6d*C*vB6?~BWP8y6#Yp0SMyJe9MmhD&3!L_l6PxYx;x#JuGkaBS9gg6t5P zyUni_4m)?eP>c5~rQi>>;X+&ez|YJtfZ3s-V}ACF_nl{zHKDlAr1#hO*oe5@KZy4i z#&*0kyZwN5tgdYwFyPBFk0T2MAKR{5GVaDIUdP>Tx8GsM;OnjZZSytEa}v^*p0YJ6 zN#|>eq+SwmO4?g|vw1Xqz2ZAYsLDbO=KUCreO7SsUFG@KuctS=o)*6>oyQfj=%FXS zZ^)wComb1^ndT+HXVc{2p}$E#JQxJouO`d#-W#~SX=aCuN>j49FWic&m3ayLK^AWB z@)x=6w;*m?7Kw%e&@>U?=ly!tM1J!$7>yHA3kh)}{@NX%I25*85Z-SbCW?W?_@m#O zd~ecY#E-{g2<_h}g#89l6~|ipVq0R-{!!k+=Aozsajm{~+hqS^oTjbv^LFq1eq2v? zD&wC<&(-|f_E${R&O_cJ3WUm~{bCaMPT6r8i+{K5bhIG-wQsq5nO;6bSu&)r^%cTu OqtN(F@bnF6`~M#q83@P# literal 0 HcmV?d00001 diff --git a/src/syncterm/menu_settings.c b/src/syncterm/menu_settings.c index feed5b18..01a634f4 100644 --- a/src/syncterm/menu_settings.c +++ b/src/syncterm/menu_settings.c @@ -94,10 +94,13 @@ set_ini_values(str_list_t *ini, const struct syncterm_settings *set) iniSetString(ini, "SyncTERM", "TLSClientKey", set->tls_client_key, &ini_style); iniSetString(ini, "SyncTERM", "TERM", set->TERM, &ini_style); + iniSetString(ini, "SyncTERM", "MenuFont", set->menu_font, &ini_style); iniSetBool(ini, "SyncTERM", "BlockyScaling", set->blocky, &ini_style); iniSetBool(ini, "SyncTERM", "ExternalScaling", set->extern_scale, &ini_style); + iniSetBool(ini, "SyncTERM", "GPUAccelerated", set->gpu_accel, + &ini_style); iniSetBool(ini, "SyncTERM", "InvertMouseWheel", set->invert_wheel, &ini_style); iniSetString(ini, "SyncTERM", "KeyDerivationIterations", @@ -150,8 +153,24 @@ apply_settings(const struct syncterm_settings *set) cio_api.options |= CONIO_OPT_BLOCKY_SCALING; else cio_api.options &= ~CONIO_OPT_BLOCKY_SCALING; - setscaling_type(settings.extern_scale ? CIOLIB_SCALING_EXTERNAL : + bool gpu_live=settings.gpu_accel + && (cio_api.mode==CIOLIB_MODE_SDL || cio_api.mode==CIOLIB_MODE_SDL_FULLSCREEN); + if (settings.gpu_accel) + putenv("SDL_RENDER_DRIVER=opengl"); + /* Set the texture policy before requesting a renderer rebuild. */ + if (gpu_live && (settings.extern_scale || settings.blocky)) + cio_api.options |= CONIO_OPT_HIRES_EXTERNAL; + else + cio_api.options &= ~CONIO_OPT_HIRES_EXTERNAL; + if (gpu_live && !settings.extern_scale && !settings.blocky) + cio_api.options |= CONIO_OPT_POINTY_EXTERNAL; + else + cio_api.options &= ~CONIO_OPT_POINTY_EXTERNAL; + setscaling_type((settings.extern_scale || gpu_live) ? CIOLIB_SCALING_EXTERNAL : CIOLIB_SCALING_INTERNAL); + /* Title tracks the toggle live: one glance proves which build and state + * is on screen (ciolib_setname NULL-checks per driver). */ + setname(settings.gpu_accel ? (gpu_live ? "SyncTERM [GPU]" : "SyncTERM [Restart to enable GPU]") : "SyncTERM"); int custom = find_vmode(CIOLIB_MODE_CUSTOM); if (custom >= 0) { struct text_info ti; diff --git a/src/syncterm/scripts/auto/menu/main_menu.wren b/src/syncterm/scripts/auto/menu/main_menu.wren index d4cc00c5..2fce0e17 100644 --- a/src/syncterm/scripts/auto/menu/main_menu.wren +++ b/src/syncterm/scripts/auto/menu/main_menu.wren @@ -1022,6 +1022,9 @@ class MainMenuApp { } if (MainMenu.prepare()) { refresh_(preferred) + // Settings may have changed the theme or menu font: cached + // widget surfaces keep old cells, so repaint the whole tree. + _app.markAllDirty_() } } diff --git a/src/syncterm/scripts/menu_settings_ui.wren b/src/syncterm/scripts/menu_settings_ui.wren index 0501147a..3e62ab37 100644 --- a/src/syncterm/scripts/menu_settings_ui.wren +++ b/src/syncterm/scripts/menu_settings_ui.wren @@ -493,8 +493,12 @@ class SettingsMenu { "Select the default TelnetS client certificate; Delete clears it") + helpItem_("TLS Client Key", "Select its unencrypted private key; Delete clears it") + + helpItem_("Menu Font", + "The typeface used by the dialer and menus; sessions keep theirs") + helpItem_("Scaling", "Cycle the display scaling algorithm") + helpItem_("Invert Mouse Wheel", "Reverse wheel-up and wheel-down") + + helpItem_("GPU Accelerated", + "Use SDL/OpenGL; Pointy runs its edge-aware scaler on the GPU. Restart when enabling") + helpItem_("Key Derivation Shift", "The scrypt cost used for list encryption") + helpItem_("Classic Theme Colours", "The colours used by the shipped menu and file picker") @@ -736,11 +740,13 @@ class SettingsMenu { rows.add([13, settingsLine_("TERM For Shell", s.shellTerm)]) rows.add([14, settingsLine_("Scaling", Menu.scalingModes[s.scalingMode])]) rows.add([15, settingsLine_("Invert Mouse Wheel", yesNo_(s.invertWheel))]) - rows.add([16, settingsLine_("Key Derivation Shift", s.kdfShift)]) - rows.add([17, "Classic Theme Colours"]) - if (!connected) rows.add([18, "Custom Screen Mode"]) - rows.add([19, settingsLine_("TLS Client Certificate", s.tlsClientCert)]) - rows.add([20, settingsLine_("TLS Client Key", s.tlsClientKey)]) + rows.add([16, settingsLine_("GPU Accelerated", yesNo_(s.gpuAccelerated))]) + rows.add([17, settingsLine_("Key Derivation Shift", s.kdfShift)]) + rows.add([18, "Classic Theme Colours"]) + if (!connected) rows.add([19, "Custom Screen Mode"]) + rows.add([20, settingsLine_("TLS Client Certificate", s.tlsClientCert)]) + rows.add([21, settingsLine_("TLS Client Key", s.tlsClientKey)]) + rows.add([22, settingsLine_("Menu Font", s.menuFont)]) var commands = {} commands[Key.delete] = ["clear", false] @@ -749,9 +755,10 @@ class SettingsMenu { var command = result[0] var value = result[1] selected = value + var menuFontChanged = false if (command == "clear") { - if (value == 19) s.tlsClientCert = "" - if (value == 20) s.tlsClientKey = "" + if (value == 20) s.tlsClientCert = "" + if (value == 21) s.tlsClientKey = "" } else if (value == 1) { s.confirmClose = !s.confirmClose } else if (value == 2) { @@ -806,22 +813,41 @@ class SettingsMenu { } else if (value == 15) { s.invertWheel = !s.invertWheel } else if (value == 16) { + s.gpuAccelerated = !s.gpuAccelerated + } else if (value == 17) { var next = MenuUi.integer(app, "Key Derivation Work Factor", "Exponent N for scrypt-Nn", s.kdfShift, 8, 20, kdfHelp_()) if (next != null) s.kdfShift = next - } else if (value == 17) { + } else if (value == 18) { if (colors_(app, s)) changed = true - } else if (value == 18 && !connected) { + } else if (value == 19 && !connected) { if (customMode_(app, s)) changed = true - } else if (value == 19) { + } else if (value == 20) { var next = pickTlsFile_(app, "TLS Client Certificate", s.tlsClientCert) if (next != null) s.tlsClientCert = next - } else if (value == 20) { + } else if (value == 21) { var next = pickTlsFile_(app, "TLS Client Key", s.tlsClientKey) if (next != null) s.tlsClientKey = next + } else if (value == 22) { + var names = Menu.fontsCatalog.map {|row| row[1] }.toList + var current = names.indexOf(s.menuFont) + if (current == -1) current = 0 + var next = pickSetting_(app, "Menu Font", names, current) + if (next != null) { + s.menuFont = names[next] + menuFontChanged = true + } } if (s.dirty && applySettings_(app, s)) changed = true + // The menu font only skins the dialer/menus: never touch the + // live console while a session is connected. + if (menuFontChanged && !connected) { + Menu.applyMenuFont() + // applyMenuFont bumps the theme generation; re-read so the + // new default-role font reaches the widgets on next paint. + app.theme = Theme.current + } }, view) if (picked == null) { if (!changed) return false diff --git a/src/syncterm/scripts/syncterm_menu.wren b/src/syncterm/scripts/syncterm_menu.wren index 63d96363..b834a102 100644 --- a/src/syncterm/scripts/syncterm_menu.wren +++ b/src/syncterm/scripts/syncterm_menu.wren @@ -71,6 +71,7 @@ class Menu { // [minimumColorCount, sixteen mode-specific conio default colors]. foreign static paletteDefaults(screenMode) foreign static fontsCatalog + foreign static applyMenuFont() foreign static logLevels foreign static screenModes // Each build-dependent pair is [numeric value, display name]. @@ -195,6 +196,8 @@ foreign class Settings { foreign promptSave=(value) foreign invertWheel foreign invertWheel=(value) + foreign gpuAccelerated + foreign gpuAccelerated=(value) foreign modemDevice foreign modemDevice=(value) foreign modemInit @@ -209,6 +212,8 @@ foreign class Settings { foreign tlsClientCert=(value) foreign tlsClientKey foreign tlsClientKey=(value) + foreign menuFont + foreign menuFont=(value) foreign startupMode foreign startupMode=(value) foreign outputMode @@ -302,6 +307,8 @@ foreign class BBS { foreign hidePopups=(value) foreign yellowIsYellow foreign yellowIsYellow=(value) + foreign exclusiveMouse + foreign exclusiveMouse=(value) foreign forceLcf foreign forceLcf=(value) foreign dlDir diff --git a/src/syncterm/syncterm.c b/src/syncterm/syncterm.c index 750d28a8..82a8c8f8 100644 --- a/src/syncterm/syncterm.c +++ b/src/syncterm/syncterm.c @@ -112,7 +112,17 @@ enum { #endif #endif -const char *syncterm_version = "SyncTERM 1.10b-ANSITV-DEV" +/* Build identity: generated at build time into build_id.h (see the + * cross-build notes). Names the repo state and UTC build time, e.g. + * 33e9df6-20260920-1545, so any binary is traceable to its source. + * Falls back to the old tag when built without the header. */ +#if defined(__has_include) && __has_include("build_id.h") +#include "build_id.h" +#endif +#ifndef SYNCTERM_BUILD_ID +#define SYNCTERM_BUILD_ID "ANSITV-DEV" +#endif +const char *syncterm_version = "SyncTERM 1.10b-" SYNCTERM_BUILD_ID #define ALPHA #ifdef _DEBUG @@ -1927,6 +1937,7 @@ load_settings(struct syncterm_settings *set) set->scaling_factor = iniReadFloat(inifile, "SyncTERM", "ScalingFactor", 0); set->blocky = iniReadBool(inifile, "SyncTERM", "BlockyScaling", true); set->extern_scale = iniReadBool(inifile, "SyncTERM", "ExternalScaling", false); + set->gpu_accel = iniReadBool(inifile, "SyncTERM", "GPUAccelerated", false); set->invert_wheel = iniReadBool(inifile, "SyncTERM", "InvertMouseWheel", false); set->defaultCursor = iniReadEnum(inifile, "SyncTERM", "DefaultCursor", cursor_enum, ST_CT_DEFAULT); @@ -1993,6 +2004,8 @@ load_settings(struct syncterm_settings *set) sizeof(set->theme_file)); iniReadSString(inifile, "SyncTERM", "ThemePackage", "", set->theme_package, sizeof(set->theme_package)); + iniReadSString(inifile, "SyncTERM", "MenuFont", MENU_FONT_DEFAULT, + set->menu_font, sizeof(set->menu_font)); if (set->theme_package[0] != '\0') set->theme_file[0] = '\0'; @@ -2538,10 +2551,23 @@ main(int argc, char **argv) cio_api.options |= CONIO_OPT_BLOCKY_SCALING; else cio_api.options &= ~CONIO_OPT_BLOCKY_SCALING; - ciolib_initial_scaling_type = (settings.extern_scale ? CIOLIB_SCALING_EXTERNAL : CIOLIB_SCALING_INTERNAL); + ciolib_initial_scaling_type = ((settings.extern_scale || settings.gpu_accel) ? CIOLIB_SCALING_EXTERNAL : CIOLIB_SCALING_INTERNAL); + if (settings.gpu_accel && (settings.extern_scale || settings.blocky)) + cio_api.options |= CONIO_OPT_HIRES_EXTERNAL; + else + cio_api.options &= ~CONIO_OPT_HIRES_EXTERNAL; + if (settings.gpu_accel && !settings.extern_scale && !settings.blocky) + cio_api.options |= CONIO_OPT_POINTY_EXTERNAL; + else + cio_api.options &= ~CONIO_OPT_POINTY_EXTERNAL; + if (settings.gpu_accel) { + putenv("SDL_RENDER_DRIVER=opengl"); + bool full=ciolib_mode==CIOLIB_MODE_GDI_FULLSCREEN || ciolib_mode==CIOLIB_MODE_SDL_FULLSCREEN; + ciolib_mode=full ? CIOLIB_MODE_SDL_FULLSCREEN:CIOLIB_MODE_SDL; + } if (initciolib(ciolib_mode)) return 1; - setname("SyncTERM"); + setname(settings.gpu_accel ? "SyncTERM [GPU]" : "SyncTERM"); if (settings.blocky) cio_api.options |= CONIO_OPT_BLOCKY_SCALING; else @@ -2567,6 +2593,9 @@ main(int argc, char **argv) FULLPATH(path, inpath, sizeof(path)); } load_font_files(); + /* Dialer/menus use the configured menu font; sessions pick their + * own per connection below. */ + apply_menu_font(); if (!wren_menu_host_init()) { fputs("Unable to initialize the Wren main menu\n", stderr); return 1; @@ -2712,6 +2741,7 @@ main(int argc, char **argv) load_font_files(); textmode(txtinfo.currmode); set_default_cursor(); + apply_menu_font(); fake_mode = -1; settitle("SyncTERM"); } @@ -2773,6 +2803,7 @@ main(int argc, char **argv) close_connection_log(); textmode(txtinfo.currmode); set_default_cursor(); + apply_menu_font(); settitle("SyncTERM"); } if (quitting || url[0]) { diff --git a/src/syncterm/syncterm.h b/src/syncterm/syncterm.h index dfe1ce9b..d28337d6 100644 --- a/src/syncterm/syncterm.h +++ b/src/syncterm/syncterm.h @@ -91,6 +91,7 @@ struct syncterm_settings { int left_just; int blocky; int extern_scale; + int gpu_accel; uint audio_output_modes; bool invert_wheel; bool webgetUserList; @@ -104,6 +105,7 @@ struct syncterm_settings { unsigned theme_lightbar_background_color; char theme_file[MAX_PATH + 1]; char theme_package[MAX_PATH + 1]; + char menu_font[80]; }; extern ini_bitdesc_t audio_output_bits[]; diff --git a/src/syncterm/term.c b/src/syncterm/term.c index 8e838545..c26625d7 100644 --- a/src/syncterm/term.c +++ b/src/syncterm/term.c @@ -4820,8 +4820,12 @@ handle_mouse_event(struct mouse_state *ms) } else { force_status_update = true; + /* Arrow even off a hyperlink: the + * pre-connect surface is + * point-and-click, not a text + * field. */ if (ms->mode == MM_OFF) - mousepointer(CIOLIB_MOUSEPTR_BAR); + mousepointer(CIOLIB_MOUSEPTR_ARROW); } } break; diff --git a/src/syncterm/theme.c b/src/syncterm/theme.c index f082a781..62f9cb12 100644 --- a/src/syncterm/theme.c +++ b/src/syncterm/theme.c @@ -994,6 +994,15 @@ syncterm_theme_generation(void) return theme_generation; } +/* Signal Wren Theme.current to rebuild without touching any theme data. + * Used when the menu font changes: the pushed default-role font follows + * the configured menu font, so the UI must re-read the theme. */ +void +syncterm_theme_refresh(void) +{ + theme_generation++; +} + bool syncterm_theme_prepare(const struct syncterm_settings *settings, bool force_reload, struct syncterm_theme **result, char *error, diff --git a/src/syncterm/theme.h b/src/syncterm/theme.h index 1304e966..69735cef 100644 --- a/src/syncterm/theme.h +++ b/src/syncterm/theme.h @@ -106,6 +106,7 @@ const struct syncterm_theme *syncterm_theme_default(void); const struct syncterm_theme_style *syncterm_theme_style( const struct syncterm_theme *theme, const char *role); uint64_t syncterm_theme_generation(void); +void syncterm_theme_refresh(void); bool syncterm_theme_prepare(const struct syncterm_settings *settings, bool force_reload, struct syncterm_theme **result, char *error, diff --git a/src/syncterm/wren_bind.c b/src/syncterm/wren_bind.c index 8b3b4275..451d1896 100644 --- a/src/syncterm/wren_bind.c +++ b/src/syncterm/wren_bind.c @@ -21,6 +21,7 @@ #include "genwrap.h" /* xp_timer */ #include "syncterm.h" #include "bbslist.h" +#include "fonts.h" #include "conn.h" #include "term.h" #include "theme.h" @@ -639,7 +640,17 @@ wren_push_theme_data(WrenVM *vm, const struct syncterm_theme *theme) wrenSetSlotNewList(vm, 2); wrenSetSlotString(vm, 3, style->role); wrenInsertInList(vm, 2, -1, 3); - set_optional_number(vm, 3, style->font); + /* The menu font skins every Wren UI: the "default" role every + * style inherits from follows the configured menu font instead + * of the theme file's slot 0. Without this the surfaces keep + * stamping font 0 and the Menu Font row is a visual no-op. */ + int font = style->font; + if (strcmp(style->role, "default") == 0) { + font = find_font_id(settings.menu_font); + if (font < 0 || font > 255) + font = 0; + } + set_optional_number(vm, 3, font); wrenInsertInList(vm, 2, -1, 3); set_optional_number(vm, 3, style->legacy_attr); wrenInsertInList(vm, 2, -1, 3); diff --git a/src/syncterm/wren_bind_menu.c b/src/syncterm/wren_bind_menu.c index 64046825..1a07c9bc 100644 --- a/src/syncterm/wren_bind_menu.c +++ b/src/syncterm/wren_bind_menu.c @@ -1,6 +1,7 @@ #include "wren_bind_menu.h" #include "bbslist_model.h" +#include "fonts.h" #include "comio.h" #include "conn.h" #include "genwrap.h" @@ -763,7 +764,10 @@ fn_Menu_setHyperlinkHover(WrenVM *vm) } else { show_status_url(""); - mousepointer(CIOLIB_MOUSEPTR_BAR); + /* An arrow, not the I-beam: the menu is a point-and-click + * surface even where there is no hyperlink under the + * pointer. */ + mousepointer(CIOLIB_MOUSEPTR_ARROW); } wrenSetSlotNull(vm, 0); } @@ -932,6 +936,13 @@ static char *const log_level_names[] = { static void fn_Menu_logLevels(WrenVM *vm) { push_indexed_names(vm, log_level_names, 0); } static void fn_Menu_fontsCatalog(WrenVM *vm) { push_indexed_names(vm, font_names, 0); } +static void +fn_Menu_applyMenuFont(WrenVM *vm) +{ + (void)vm; + apply_menu_font(); +} + static const int address_family_values[] = { ADDRESS_FAMILY_UNSPEC, ADDRESS_FAMILY_INET, ADDRESS_FAMILY_INET6 }; @@ -1386,6 +1397,7 @@ static const struct binding bindings[] = { { "Menu", true, "parities", fn_Menu_parities }, { "Menu", true, "paletteDefaults(_)", fn_Menu_paletteDefaults }, { "Menu", true, "fontsCatalog", fn_Menu_fontsCatalog }, + { "Menu", true, "applyMenuFont()", fn_Menu_applyMenuFont }, { "Menu", true, "logLevels", fn_Menu_logLevels }, { "BBS", false, "name", fn_BBS_name }, { "BBS", false, "rename(_)", fn_BBS_rename }, diff --git a/src/syncterm/wren_bind_menu_settings.c b/src/syncterm/wren_bind_menu_settings.c index c816d097..1b5ddc41 100644 --- a/src/syncterm/wren_bind_menu_settings.c +++ b/src/syncterm/wren_bind_menu_settings.c @@ -212,6 +212,7 @@ slot_bool(WrenVM *vm, int slot, bool *result) SETTINGS_BOOL_PROPERTY(confirmClose, confirm_close) SETTINGS_BOOL_PROPERTY(promptSave, prompt_save) SETTINGS_BOOL_PROPERTY(invertWheel, invert_wheel) +SETTINGS_BOOL_PROPERTY(gpuAccelerated, gpu_accel) SETTINGS_STRING_PROPERTY(modemDevice, mdm.device_name) SETTINGS_STRING_PROPERTY(modemInit, mdm.init_string) SETTINGS_STRING_PROPERTY(modemDial, mdm.dial_string) @@ -219,6 +220,7 @@ SETTINGS_STRING_PROPERTY(listPath, stored_list_path) SETTINGS_STRING_PROPERTY(shellTerm, TERM) SETTINGS_STRING_PROPERTY(tlsClientCert, tls_client_cert) SETTINGS_STRING_PROPERTY(tlsClientKey, tls_client_key) +SETTINGS_STRING_PROPERTY(menuFont, menu_font) SETTINGS_NUM_PROPERTY(startupMode, startup_mode, SCREEN_MODE_CURRENT, SCREEN_MODE_TERMINATOR - 1) SETTINGS_NUM_PROPERTY(cursorStyle, defaultCursor, ST_CT_DEFAULT, @@ -1676,6 +1678,7 @@ static const struct binding bindings[] = { SETTINGS_GETSET(confirmClose), SETTINGS_GETSET(promptSave), SETTINGS_GETSET(invertWheel), + SETTINGS_GETSET(gpuAccelerated), SETTINGS_GETSET(modemDevice), SETTINGS_GETSET(modemInit), SETTINGS_GETSET(modemDial), @@ -1683,6 +1686,7 @@ static const struct binding bindings[] = { SETTINGS_GETSET(shellTerm), SETTINGS_GETSET(tlsClientCert), SETTINGS_GETSET(tlsClientKey), + SETTINGS_GETSET(menuFont), SETTINGS_GETSET(startupMode), SETTINGS_GETSET(outputMode), SETTINGS_GETSET(cursorStyle), diff --git a/src/syncterm/wren_menu_host.c b/src/syncterm/wren_menu_host.c index 707c0894..b69399c7 100644 --- a/src/syncterm/wren_menu_host.c +++ b/src/syncterm/wren_menu_host.c @@ -445,7 +445,14 @@ wren_menu_host_run(const char *current, bool connected) bool restore_key_events = ciokey_setenabled(false); #endif wren_host_input_barrier(); - mousepointer(CIOLIB_MOUSEPTR_BAR); + /* The dialer is a point-and-click list, not a text field: the + * pointer is an arrow, never the I-beam the BAR type gives. */ + mousepointer(CIOLIB_MOUSEPTR_ARROW); + /* doterm() hides the pointer on every exit path; the dialer is a + * point-and-click surface, so it must own a visible one. The + * first launch needs this too: initciolib starts with the + * pointer hidden. */ + showmouse(); struct wren_host_state *old = wren_host_select_state(&menu_state); wrenEnsureSlots(menu_state.vm, 3); wrenGetVariable(menu_state.vm, "main_menu", "MainMenu", 0); -- 2.47.3