Skip to content

Commit 9aa6cde

Browse files
committed
Merge pull request #294 from nukep/master
Fix conflict with #288 and #290
2 parents 4076dc9 + 9444e10 commit 9aa6cde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sdl2/render.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ impl Renderer {
197197
}
198198

199199
pub fn get_blend_mode(&self) -> SdlResult<BlendMode> {
200-
let blend: c_uint = 0;
200+
let blend = 0;
201201
let result = unsafe { ll::SDL_GetRenderDrawBlendMode(self.raw, &blend) == 0 };
202202
if result {
203203
Ok(FromPrimitive::from_i64(blend as i64).unwrap())
@@ -590,7 +590,7 @@ impl Texture {
590590
}
591591

592592
pub fn get_blend_mode(&self) -> SdlResult<BlendMode> {
593-
let blend: c_uint = 0;
593+
let blend = 0;
594594
let result = unsafe { ll::SDL_GetTextureBlendMode(self.raw, &blend) == 0 };
595595
if result {
596596
Ok(FromPrimitive::from_i64(blend as i64).unwrap())

0 commit comments

Comments
 (0)