summaryrefslogtreecommitdiffhomepage
path: root/dev/modules/CoreGfx/MathGfx.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-17 09:19:52 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-17 09:19:52 +0100
commit0d931fe17b32cc5082f1180138dbb7bd6416dd14 (patch)
tree2c5b2f6176423cf53d419fd2e6d5131d2bbb224f /dev/modules/CoreGfx/MathGfx.h
parentbfce4d5673fc469395e0d438daa7f6d839834abc (diff)
tools: feat: new syntax for function.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/modules/CoreGfx/MathGfx.h')
-rw-r--r--dev/modules/CoreGfx/MathGfx.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/modules/CoreGfx/MathGfx.h b/dev/modules/CoreGfx/MathGfx.h
index 0b483fad..523f4b31 100644
--- a/dev/modules/CoreGfx/MathGfx.h
+++ b/dev/modules/CoreGfx/MathGfx.h
@@ -11,9 +11,9 @@
namespace UI {
#ifdef NE_CORE_GFX_USE_DOUBLE
-typedef double fb_real_t;
+typedef double cg_real_t;
#else
-typedef float fb_real_t;
+typedef float cg_real_t;
#endif
/// @brief Linear interpolation equation solver.
@@ -21,7 +21,7 @@ typedef float fb_real_t;
/// @param to to which value.
/// @param stat
/// @return Linear interop value.
-inline fb_real_t fb_math_lerp(fb_real_t to, fb_real_t from, fb_real_t stat) {
+inline cg_real_t cg_math_lerp(cg_real_t to, cg_real_t from, cg_real_t stat) {
return (from) + (to - from) * stat;
}
} // namespace UI \ No newline at end of file