mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2025-01-26 02:36:32 +11:00
Updated Noise Example
This commit is contained in:
parent
5f752255fd
commit
6aa4dbbac1
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
extern crate minifb;
|
extern crate minifb;
|
||||||
|
|
||||||
const WIDTH: usize = 1280;
|
const WIDTH: usize = 640;
|
||||||
const HEIGHT: usize = 720;
|
const HEIGHT: usize = 360;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut noise;
|
let mut noise;
|
||||||
|
@ -10,7 +10,7 @@ fn main() {
|
||||||
|
|
||||||
let mut buffer: [u32; WIDTH * HEIGHT] = [0; WIDTH * HEIGHT];
|
let mut buffer: [u32; WIDTH * HEIGHT] = [0; WIDTH * HEIGHT];
|
||||||
|
|
||||||
if !(minifb::open("TestWindow", WIDTH, HEIGHT)) {
|
if !(minifb::open("Noise Test - Press ESC to exit", WIDTH, HEIGHT)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue