aboutsummaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
Diffstat (limited to 'sources')
-rw-r--r--sources/TZR_Init.c8
-rw-r--r--sources/globals.c1
2 files changed, 2 insertions, 7 deletions
diff --git a/sources/TZR_Init.c b/sources/TZR_Init.c
index ce09a3c..7f80978 100644
--- a/sources/TZR_Init.c
+++ b/sources/TZR_Init.c
@@ -62,11 +62,7 @@ _TZR_Init(const TZR_Config *config)
___tzr_next_time = SDL_GetTicks64();
}
- ___tzr_command[TZR_RES_RAW] = getenv("TZR_EDIT_RAW");
- if (___tzr_command[TZR_RES_RAW] == NULL)
- ___tzr_command[TZR_RES_RAW] = "foot nvim";
- ___tzr_command[TZR_RES_IMAGE] = getenv("TZR_EDIT_IMAGE");
- if (___tzr_command[TZR_RES_IMAGE] == NULL)
- ___tzr_command[TZR_RES_IMAGE] = "gimp";
+ if (!___tzr_config.show_cursor)
+ SDL_ShowCursor(0);
return 0;
}
diff --git a/sources/globals.c b/sources/globals.c
index 7c4f26b..712edbf 100644
--- a/sources/globals.c
+++ b/sources/globals.c
@@ -17,7 +17,6 @@ unsigned long ___tzr_min_dt = 0;
int ___tzr_should_quit = 0;
int ___tzr_mouse_x = 0;
int ___tzr_mouse_y = 0;
-const char *___tzr_command[___TZR_RES_COUNT] = {};
TZR_KeyState ___tzr_keystates[SDL_NUM_SCANCODES] = {};
TZR_KeyState ___tzr_mousestates[256] = {}; //doc says than mouse button is u8
float ___tzr_scale = 1.0;