summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-10-17 00:40:14 -0400
committerpommicket <pommicket@gmail.com>2023-10-17 00:40:14 -0400
commitfb4122bc9dd0bef071908371c6d4cf19b7efa8f1 (patch)
tree2493bcfaee932a966d5a6a370794db0b59c608df /main.c
parent581a17d964e35cdbbe4e90a7bf0333ef73cd49a8 (diff)
new config system not working yet, but it compiels
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 60c2396..a972f66 100644
--- a/main.c
+++ b/main.c
@@ -1,7 +1,7 @@
/*
TODO:
+- get rid of ted->strings; do cfg->strings instead.
- switch back to starting file after rename
-- put signature help at top if cursor is near bottom
- .editorconfig? see https://editorconfig.org/
FUTURE FEATURES:
- autodetect indentation (tabs vs spaces)
@@ -1166,7 +1166,7 @@ int main(int argc, char **argv) {
{
// annoyingly, SDL_GL_SwapWindow seems to be a busy loop on my laptop for some reason...
// this is why the framerate-cap settings exists
- const Settings *settings = ted->default_settings;
+ const Settings *settings = ted_default_settings(ted);
if (settings->framerate_cap) {
i32 ms_wait = 1000 / (i32)settings->framerate_cap - (i32)((frame_end_noswap - frame_start) * 1000);
ms_wait -= 1; // give swap an extra ms to make sure it's actually vsynced