]> git.sesse.net Git - movit/commitdiff
Increase the range of the blur control.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 2 Oct 2012 23:14:27 +0000 (01:14 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 2 Oct 2012 23:14:27 +0000 (01:14 +0200)
main.cpp

index a5890a3504a11c49771b4572397a7af47d32a68b..5e02d703844bf83687a02a0c0b9bded56afd8ab4 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -77,7 +77,7 @@ void mouse(int x, int y)
        } else if (yf >= 0.70f && yf < 0.72f && xf < 0.2f) {
                inner_radius = (xf / 0.2f);
        } else if (yf >= 0.75f && yf < 0.77f && xf < 0.2f) {
        } else if (yf >= 0.70f && yf < 0.72f && xf < 0.2f) {
                inner_radius = (xf / 0.2f);
        } else if (yf >= 0.75f && yf < 0.77f && xf < 0.2f) {
-               blur_radius = (xf / 0.2f) * 10.0f;
+               blur_radius = (xf / 0.2f) * 100.0f;
        }
 }
 
        }
 }
 
@@ -240,7 +240,7 @@ int main(int argc, char **argv)
                draw_saturation_bar(0.6f, saturation / 4.0f);
                draw_saturation_bar(0.65f, radius);
                draw_saturation_bar(0.70f, inner_radius);
                draw_saturation_bar(0.6f, saturation / 4.0f);
                draw_saturation_bar(0.65f, radius);
                draw_saturation_bar(0.70f, inner_radius);
-               draw_saturation_bar(0.75f, blur_radius / 10.0f);
+               draw_saturation_bar(0.75f, blur_radius / 100.0f);
 
                SDL_GL_SwapBuffers();
                check_error();
 
                SDL_GL_SwapBuffers();
                check_error();