From 1cd3b0f756c609c0c871e1a0db0762039f1bd7d6 Mon Sep 17 00:00:00 2001 From: "Arthur Brainville (Ybalrid)" Date: Sun, 25 Feb 2018 00:42:35 +0100 Subject: [PATCH] Fix pesudo -> pseudo typo Signed-off by: Arthur Brainville (Ybalrid) --- examples/raytrace/main.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/raytrace/main.cc b/examples/raytrace/main.cc index c0091c6..e4ae3ec 100644 --- a/examples/raytrace/main.cc +++ b/examples/raytrace/main.cc @@ -411,7 +411,7 @@ void resizeCallback(float width, float height) { gHeight = static_cast(height); } -inline float pesudoColor(float v, int ch) { +inline float pseudoColor(float v, int ch) { if (ch == 0) { // red if (v <= 0.5f) return 0.f; @@ -476,7 +476,7 @@ void UpdateDisplayTextureGL(GLint tex_id, int width, int height) { for (size_t i = 0; i < buf.size(); i++) { float v = (gRenderLayer.depthRGBA[i] - d_min) / d_diff; if (gShowDepthPeseudoColor) { - buf[i] = pesudoColor(v, i % 4); + buf[i] = pseudoColor(v, i % 4); } else { buf[i] = v; } @@ -935,7 +935,7 @@ int main(int argc, char **argv) { ImGui::InputFloat("show pos scale", &gShowPositionScale); ImGui::InputFloat2("show depth range", gShowDepthRange); - ImGui::Checkbox("show depth pesudo color", &gShowDepthPeseudoColor); + ImGui::Checkbox("show depth pseudo color", &gShowDepthPeseudoColor); } ImGui::End();