Renaming the color function to just *transparent*,

as suggested on review.
This commit is contained in:
Adenilson Cavalcanti 2015-04-22 14:51:39 -07:00
parent cf2406de47
commit 2c7edeb2bf
5 changed files with 7 additions and 7 deletions

View file

@ -31,7 +31,7 @@ pub fn black() -> AzColor {
}
#[inline]
pub fn transparent_black() -> AzColor {
pub fn transparent() -> AzColor {
AzColor { r: 0.0, g: 0.0, b: 0.0, a: 0.0 }
}

View file

@ -169,7 +169,7 @@ impl<'a> PaintContext<'a> {
}
pub fn clear(&self) {
let pattern = ColorPattern::new(color::transparent_black());
let pattern = ColorPattern::new(color::transparent());
let rect = Rect(Point2D(self.page_rect.origin.x as AzFloat,
self.page_rect.origin.y as AzFloat),
Size2D(self.screen_rect.size.width as AzFloat,