We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4076dc9 + 9444e10 commit 9aa6cdeCopy full SHA for 9aa6cde
src/sdl2/render.rs
@@ -197,7 +197,7 @@ impl Renderer {
197
}
198
199
pub fn get_blend_mode(&self) -> SdlResult<BlendMode> {
200
- let blend: c_uint = 0;
+ let blend = 0;
201
let result = unsafe { ll::SDL_GetRenderDrawBlendMode(self.raw, &blend) == 0 };
202
if result {
203
Ok(FromPrimitive::from_i64(blend as i64).unwrap())
@@ -590,7 +590,7 @@ impl Texture {
590
591
592
593
594
let result = unsafe { ll::SDL_GetTextureBlendMode(self.raw, &blend) == 0 };
595
596
0 commit comments