mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Merge pull request #294 from nukep/master
Fix conflict with #288 and #290
This commit is contained in:
+2
-2
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user