Subversion Repositories Kolibri OS

Rev

Rev 1892 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1892 Rev 3959
Line 75... Line 75...
75
	 * problem. */
75
	 * problem. */
76
	return &cairo_color_magenta;
76
	return &cairo_color_magenta;
77
    }
77
    }
78
}
78
}
Line 79... Line -...
79
 
-
 
80
void
-
 
81
_cairo_color_init (cairo_color_t *color)
-
 
82
{
-
 
83
    *color = cairo_color_white;
-
 
84
}
-
 
85
 
-
 
86
void
-
 
87
_cairo_color_init_rgb (cairo_color_t *color,
-
 
88
		       double red, double green, double blue)
-
 
89
{
-
 
90
    _cairo_color_init_rgba (color, red, green, blue, 1.0);
-
 
91
}
-
 
92
 
79
 
93
/* Convert a double in [0.0, 1.0] to an integer in [0, 65535]
80
/* Convert a double in [0.0, 1.0] to an integer in [0, 65535]
94
 * The conversion is designed to divide the input range into 65536
81
 * The conversion is designed to divide the input range into 65536
95
 * equally-sized regions. This is achieved by multiplying by 65536 and
82
 * equally-sized regions. This is achieved by multiplying by 65536 and
96
 * then special-casing the result of an input value of 1.0 so that it
83
 * then special-casing the result of an input value of 1.0 so that it