Subversion Repositories Kolibri OS

Rev

Rev 1892 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1892 Rev 3959
Line 31... Line 31...
31
 *
31
 *
32
 * Author(s):
32
 * Author(s):
33
 *	Kristian Høgsberg 
33
 *	Kristian Høgsberg 
34
 */
34
 */
Line -... Line 35...
-
 
35
 
35
 
36
 
36
#define _BSD_SOURCE /* for snprintf() */
37
//#define _BSD_SOURCE /* for snprintf() */
Line 37... Line 38...
37
#include "cairoint.h"
38
#include "cairoint.h"
-
 
39
 
-
 
40
#include "cairo-output-stream-private.h"
38
 
41
 
39
#include "cairo-output-stream-private.h"
42
#include "cairo-array-private.h"
Line 40... Line 43...
40
#include "cairo-error-private.h"
43
#include "cairo-error-private.h"
41
#include "cairo-compiler-private.h"
44
#include "cairo-compiler-private.h"
Line 317... Line 320...
317
    decimal_point_len = strlen (decimal_point);
320
    decimal_point_len = strlen (decimal_point);
Line 318... Line 321...
318
 
321
 
Line 319... Line 322...
319
    assert (decimal_point_len != 0);
322
    assert (decimal_point_len != 0);
320
 
323
 
321
    if (limited_precision) {
324
    if (limited_precision) {
322
	snprintf (buffer, size, "%.*f", FIXED_POINT_DECIMAL_DIGITS, d);
325
        snprintf (buffer, size, "%.*f", FIXED_POINT_DECIMAL_DIGITS, d);
323
    } else {
326
    } else {
324
	/* Using "%f" to print numbers less than 0.1 will result in
327
	/* Using "%f" to print numbers less than 0.1 will result in
325
	 * reduced precision due to the default 6 digits after the
328
	 * reduced precision due to the default 6 digits after the