From 2d00be47103f654c4fe30a806ac358abe9754d3a Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Wed, 18 Jun 2014 22:26:13 +0530 Subject: [PATCH] Update to latest Rust --- azure_hl.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/azure_hl.rs b/azure_hl.rs index fa00d8f..737e179 100644 --- a/azure_hl.rs +++ b/azure_hl.rs @@ -293,7 +293,7 @@ pub fn DrawSurfaceOptions(filter: Filter, sampling_bounds: bool) -> DrawSurfaceO } -#[deriving(Clone, Eq)] +#[deriving(Clone, PartialEq)] pub enum BackendType { NoBackend, Direct2DBackend, @@ -320,7 +320,7 @@ impl BackendType { pub struct DrawTarget { pub azure_draw_target: AzDrawTargetRef, - pub data: Option>, + pub data: Option>>, pub skia_context: Option } @@ -359,7 +359,7 @@ impl DrawTarget { } pub fn new_with_data(backend: BackendType, - data: ~[u8], + data: Vec, offset: uint, size: Size2D, stride: i32, @@ -368,7 +368,7 @@ impl DrawTarget { assert!((data.len() - offset) as i32 >= stride * size.height); let azure_draw_target = AzCreateDrawTargetForData(backend.as_azure_backend_type(), - &data[offset], + data.get(offset), &size.as_azure_int_size(), stride, format.as_azure_surface_format());