Update new icon

Preperation for renaming of the project..


Former-commit-id: c4466793633f3c37dbbad70bf6a012994e0fc750
This commit is contained in:
Michel Heily 2020-01-13 00:33:13 +02:00
parent 2cd8dc1f75
commit f6142f2c5a
2 changed files with 7 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View file

@ -73,7 +73,7 @@ fn main() {
let mut canvas = window.into_canvas().accelerated().build().unwrap();
// Display the icon as a placeholder
canvas.set_draw_color(Color::RGB(0x80, 0x75, 0x85)); // default background color for the icon
canvas.set_draw_color(Color::RGB(0x40, 0x22, 0x20)); // default background color for the icon
canvas.clear();
let texture_creator = canvas.texture_creator();
let icon_texture = texture_creator
@ -83,7 +83,12 @@ fn main() {
.copy(
&icon_texture,
None,
Some(Rect::new(0, 0, SCREEN_WIDTH * SCALE, SCREEN_HEIGHT * SCALE)),
Some(Rect::new(
(SCREEN_WIDTH as i32) * ((SCALE as i32) - 1) / 2,
(SCREEN_HEIGHT as i32) * ((SCALE as i32) - 1) / 2,
SCREEN_WIDTH,
SCREEN_HEIGHT,
)),
)
.unwrap();
canvas.present();