1786015572
This commit is contained in:
@@ -75,6 +75,11 @@ impl Platform for Trekstor {
|
|||||||
let x = (i % ctx.screen.width() as usize) as u32;
|
let x = (i % ctx.screen.width() as usize) as u32;
|
||||||
let y = (i / ctx.screen.width() as usize) as u32;
|
let y = (i / ctx.screen.width() as usize) as u32;
|
||||||
|
|
||||||
|
if x >= ctx.screen.width() || y >= ctx.screen.height() {
|
||||||
|
println!("Out of bounds {} {}", x, y);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
ctx.screen.framebuffer.set_pixel(
|
ctx.screen.framebuffer.set_pixel(
|
||||||
x,
|
x,
|
||||||
y,
|
y,
|
||||||
|
|||||||
Reference in New Issue
Block a user