Merge pull request #294 from nukep/master

Fix conflict with #288 and #290
This commit is contained in:
Tony Aldridge
2015-01-26 13:26:17 +00:00
+2 -2
View File
@@ -197,7 +197,7 @@ impl Renderer {
}
pub fn get_blend_mode(&self) -> SdlResult<BlendMode> {
let blend: c_uint = 0;
let blend = 0;
let result = unsafe { ll::SDL_GetRenderDrawBlendMode(self.raw, &blend) == 0 };
if result {
Ok(FromPrimitive::from_i64(blend as i64).unwrap())
@@ -590,7 +590,7 @@ impl Texture {
}
pub fn get_blend_mode(&self) -> SdlResult<BlendMode> {
let blend: c_uint = 0;
let blend = 0;
let result = unsafe { ll::SDL_GetTextureBlendMode(self.raw, &blend) == 0 };
if result {
Ok(FromPrimitive::from_i64(blend as i64).unwrap())