You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[package]
name = "rustsdl2snake"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
rand = "0.8.5"
sdl2 = "0.35.2"
rust:
$ rustup --version
rustup 1.26.0 (5af9b9484 2023-04-05)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.71.1 (eb26296b5 2023-08-03)`
$ rustc --version
rustc 1.71.1 (eb26296b5 2023-08-03)
$ cargo --version
cargo 1.71.1 (7f1d04c00 2023-07-29)
Are you 100% sure the same SDL version is used in the other examples? When I'm running your example on my machine I get the screenshot above, which seems correct.
By the way, my SDL2 is on version 2.28.8, and I am on linux as well.
I have a couple snippets of code that are drawing rectangles:
They all seem to be drawing the bottom-right pixel at the top left. Screenshot and system information below. Source is available here: https://github.com/computermouth/rustsdlsnake/blob/master/src/main.rs
Cargo.toml:
rust:
OS:
SDL2:
The text was updated successfully, but these errors were encountered: