Skip to content

Commit

Permalink
Change a couple examples to show that VideoMode can be constructed fr…
Browse files Browse the repository at this point in the history
…om arrays
  • Loading branch information
crumblingstatue committed Dec 23, 2024
1 parent f7abb5c commit eaaa9c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/custom-drawable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl Drawable for Bullet<'_> {

fn main() -> SfResult<()> {
let mut window = RenderWindow::new(
(800, 600),
[800, 600],
"Custom drawable",
Style::CLOSE,
&Default::default(),
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-shape.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ fn hue_time(t: f32) -> Color {

fn main() -> SfResult<()> {
let mut window = RenderWindow::new(
(800, 600),
[800, 600],
"Custom shape",
Style::DEFAULT,
&Default::default(),
Expand Down
2 changes: 1 addition & 1 deletion examples/pong.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ fn main() -> SfResult<()> {
..Default::default()
};
let mut window = RenderWindow::new(
(game_width, game_height),
[game_width, game_height],
"SFML Pong",
Style::CLOSE,
&context_settings,
Expand Down

0 comments on commit eaaa9c8

Please sign in to comment.