Skip to content

Commit

Permalink
rename load_texture_rw to load_texture_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
netcan committed Jul 14, 2020
1 parent 4763e53 commit d6938d7
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bin/src/gui.rs
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ fn get_chess_texture<T>(chess: ChessId, texture_creator: &TextureCreator<T>) ->
use RoleType::*;
use ChessKind::*;

texture_creator.load_texture_rw(
texture_creator.load_texture_bytes(
match chess {
ChessId { role: RED, kind: ELEPHANT } => { load_asset_file!("re.png") }
ChessId { role: RED, kind: LION } => { load_asset_file!("rl.png") }
@@ -92,10 +92,10 @@ impl Game {
computer,
computer_turn: false,
board_texture: texture_creator
.load_texture_rw(load_asset_file!("board.png"))
.load_texture_bytes(load_asset_file!("board.png"))
.expect("board.png"),
selected_frame: texture_creator
.load_texture_rw(load_asset_file!("oos.gif"))
.load_texture_bytes(load_asset_file!("oos.gif"))
.expect("oos.gif"),
selected_chess: None,
movable_pos: Vec::new(),
2 changes: 1 addition & 1 deletion rust-sdl2

0 comments on commit d6938d7

Please sign in to comment.