aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/gfx/surface.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/gfx/surface.rs')
-rw-r--r--src/components/gfx/surface.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/gfx/surface.rs b/src/components/gfx/surface.rs
index 4c965db812b..b30c165c08b 100644
--- a/src/components/gfx/surface.rs
+++ b/src/components/gfx/surface.rs
@@ -28,7 +28,7 @@ pub struct ImageSurface {
impl ImageSurface {
pub fn new(size: Size2D<int>, format: format) -> ImageSurface {
ImageSurface {
- size: copy size,
+ size: size.clone(),
format: format,
buffer: vec::from_elem((size.area() as uint) * format.bpp(), 0u8)
}