Commit 178f05c4 authored by robbycerantola's avatar robbycerantola

image wrapper fixed

parent e71af723
......@@ -296,7 +296,7 @@ pub trait Renderer {
/// Display an image
fn image(&mut self, start_x: i32, start_y: i32, w: u32, h: u32, data: &[Color]) {
//check if image is inside window
if (w + start_x as u32) > self.width() && h > 100 {
if (w + start_x as u32) > self.width() || h < 100 {
self.image_legacy(start_x, start_y, w, h, data);
self.image_fast(start_x, start_y, w, h, data);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment