Enlightenment CVS committal

Author  : titan
Project : e17
Module  : apps/ephoto

Dir     : e17/apps/ephoto/src/bin


Modified Files:
        ephoto_imaging.c 


Log Message:
That was a stupid way to do it. Silly ifs.

===================================================================
RCS file: /cvs/e/e17/apps/ephoto/src/bin/ephoto_imaging.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- ephoto_imaging.c    18 May 2007 21:16:41 -0000      1.9
+++ ephoto_imaging.c    18 May 2007 21:46:00 -0000      1.10
@@ -328,14 +328,7 @@
                svalue = ewl_range_value_get(EWL_RANGE(qseek));
                jvalue = (svalue / 9) * 100;
 
-               if (jvalue < 10)
-                       snprintf(flags, PATH_MAX, "quality=%1.0f", jvalue);
-
-               if (jvalue >= 10 && jvalue < 100)
-                       snprintf(flags, PATH_MAX, "quality=%2.0f", jvalue);
-
-               if (jvalue == 100)
-                       snprintf(flags, PATH_MAX, "quality=%3.0f", jvalue);
+               snprintf(flags, PATH_MAX, "quality=%.0f", jvalue);
        }
        printf("%s\n", flags);
        if(!file) return;



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to