Merge pull request #29 from FoamyGuy/editor_fix
Some checks failed
Validate Build / validate-build (push) Has been cancelled

editor fix for TPM. Fix launchedr atexit error when no mouse attached.
This commit is contained in:
foamyguy 2025-08-01 12:52:13 -05:00 committed by GitHub
commit 2b852f7b55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -37,11 +37,10 @@ highlight_palette[1] = 0xFFFFFF
highlight_palette[2] = 0xC9C9C9 highlight_palette[2] = 0xC9C9C9
tpm = TilePaletteMapper(highlight_palette, 2)
terminal_area = TileGrid(bitmap=font.bitmap, width=screen_size[0], height=screen_size[1], terminal_area = TileGrid(bitmap=font.bitmap, width=screen_size[0], height=screen_size[1],
tile_width=char_size[0], tile_height=char_size[1]) tile_width=char_size[0], tile_height=char_size[1], pixel_shader=tpm)
tpm = TilePaletteMapper(highlight_palette, 2, terminal_area)
for x in range(screen_size[0]): for x in range(screen_size[0]):
tpm[x,screen_size[1]-1] = [2,0] tpm[x,screen_size[1]-1] = [2,0]

View file

@ -98,6 +98,7 @@ if pathlib.Path("launcher.conf.json").exists():
DIR_IN = 0x80 DIR_IN = 0x80
mouse_interface_index, mouse_endpoint_address = None, None mouse_interface_index, mouse_endpoint_address = None, None
mouse = None mouse = None
mouse_was_attached = None
if "use_mouse" in launcher_config and launcher_config["use_mouse"]: if "use_mouse" in launcher_config and launcher_config["use_mouse"]: