1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-03-25 11:29:30 +00:00

fix bleeding pixels in cutscene skip box (#78)

This commit is contained in:
József Sallai 2022-03-07 00:50:02 +02:00 committed by GitHub
parent e1f1dd4554
commit 465825797e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1985,7 +1985,7 @@ impl Scene for GameScene {
draw_rect(ctx, rect, Color::from_rgb(128, 128, 160))?;
rect.left = ((state.canvas_size.0 - w) * state.scale) as isize;
rect.right = rect.left + (w * state.scale) as isize;
rect.right = rect.left + (w * state.scale).ceil() as isize;
draw_rect(ctx, rect, Color::from_rgb(128, 128, 160))?;
state.font.draw_text_with_shadow(