mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2024-11-30 01:02:51 +00:00
switch: use 427px image for upper part
This commit is contained in:
parent
e109db81e6
commit
99c4798bed
|
@ -134,8 +134,11 @@ impl Background {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if !state.constants.is_switch {
|
||||||
batch.add_rect((state.canvas_size.0 - 320.0) / 2.0, offset_y, &Rect::new_size(0, 0, 320, 88));
|
batch.add_rect((state.canvas_size.0 - 320.0) / 2.0, offset_y, &Rect::new_size(0, 0, 320, 88));
|
||||||
|
} else {
|
||||||
|
batch.add_rect((state.canvas_size.0 - 427.0) / 2.0, offset_y, &Rect::new_size(0, 0, 427, 88));
|
||||||
|
}
|
||||||
|
|
||||||
for x in ((-offset_x / 2)..(state.canvas_size.0 as i32)).step_by(320) {
|
for x in ((-offset_x / 2)..(state.canvas_size.0 as i32)).step_by(320) {
|
||||||
batch.add_rect(x as f32, offset_y + 88.0, &Rect::new_size(0, 88, 320, 35));
|
batch.add_rect(x as f32, offset_y + 88.0, &Rect::new_size(0, 88, 320, 35));
|
||||||
|
|
Loading…
Reference in a new issue