Merge pull request #29 from FoamyGuy/editor_fix
Some checks failed
Validate Build / validate-build (push) Has been cancelled
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:
commit
2b852f7b55
2 changed files with 3 additions and 3 deletions
|
|
@ -37,11 +37,10 @@ highlight_palette[1] = 0xFFFFFF
|
|||
highlight_palette[2] = 0xC9C9C9
|
||||
|
||||
|
||||
|
||||
tpm = TilePaletteMapper(highlight_palette, 2)
|
||||
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]):
|
||||
tpm[x,screen_size[1]-1] = [2,0]
|
||||
|
||||
|
|
|
|||
|
|
@ -98,6 +98,7 @@ if pathlib.Path("launcher.conf.json").exists():
|
|||
DIR_IN = 0x80
|
||||
mouse_interface_index, mouse_endpoint_address = None, None
|
||||
mouse = None
|
||||
mouse_was_attached = None
|
||||
|
||||
if "use_mouse" in launcher_config and launcher_config["use_mouse"]:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue