From beb2c724ffa803d299ee47b7edec70bd6fd3e996 Mon Sep 17 00:00:00 2001 From: boreddevnl Date: Thu, 2 Apr 2026 17:58:33 +0200 Subject: [PATCH] FEAT: ROTATE variable to toggle auto rotate in 3d graphs. --- src/userland/gui/grapher.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/userland/gui/grapher.c b/src/userland/gui/grapher.c index bb33e80..ff4b78b 100644 --- a/src/userland/gui/grapher.c +++ b/src/userland/gui/grapher.c @@ -11,6 +11,11 @@ // ========= // Constants // ========= +// Adjust the below configuration to your system specification and preferences. +// --- User Configuration --- +#define ROTATE 1 // Set to 0 to disable auto-rotation in 3D mode. +#define GRID_3D 100 // Grid resolution. Adjust on how much you want your PC to die (lmao) +// -------------------------- #define TOOLBAR_H 30 #define STATUSBAR_H 30 #define GRAPH_Y TOOLBAR_H @@ -37,7 +42,7 @@ static int fb_capacity = 0; #define MODE_2D 0 #define MODE_3D 1 -#define GRID_3D 100 // adjust on how much you want your PC to die (lmao) + static const double MY_PI = 3.14159265358979323846; @@ -1317,7 +1322,7 @@ int main(void) { } } - if (graph_mode == MODE_3D) { + if (graph_mode == MODE_3D && ROTATE == 1) { rot_y += 0.01; needs_repaint = true; }