From e5dc79a7a6a77bcf1c2c844a3654c1472c28de09 Mon Sep 17 00:00:00 2001 From: skejeton Date: Sun, 7 Jul 2024 12:12:35 -0300 Subject: [PATCH] Remove public documentation from `window::cycle` --- src/staembed.c | 13 ------------- umka/window.um | 4 ---- 2 files changed, 17 deletions(-) diff --git a/src/staembed.c b/src/staembed.c index a8db717..f4af1bb 100644 --- a/src/staembed.c +++ b/src/staembed.c @@ -1705,11 +1705,7 @@ const char *th_em_modulesrc[] = { "\tsetViewport({width, height})\n" "}\n" "\n" -"//~~fn cycle\n" -"// Cycle needs to be called every cycle for the window to work. If the window\n" -"// was closed, it returns false.\n" "fn cycle(delta: real) {\n" -"//~~\n" "\tumth_window_set_viewport(wp)\n" "\n" "\tth::delta = trunc(delta*1000.0)\n" @@ -5283,15 +5279,6 @@ const char *th_em_moduledocs[] = { "\n" "---------\n" "\n" -"fn cycle\n" -"\n" -"fn cycle(delta: real) {\n" -"\n" -"Cycle needs to be called every cycle for the window to work. If the window\n" -"was closed, it returns false.\n" -"\n" -"---------\n" -"\n" "fn setFullscreen\n" "\n" "fn setFullscreen*(fullscreen: bool) {\n" diff --git a/umka/window.um b/umka/window.um index 997e4d2..4737455 100644 --- a/umka/window.um +++ b/umka/window.um @@ -113,11 +113,7 @@ fn setup*(title: str = "tophat game", width: int = 400, height: int32 = 400) { setViewport({width, height}) } -//~~fn cycle -// Cycle needs to be called every cycle for the window to work. If the window -// was closed, it returns false. fn cycle(delta: real) { -//~~ umth_window_set_viewport(wp) th::delta = trunc(delta*1000.0)