Fix lvgl-sys not respecting DEP_LV_CONFIG_PATH #45
3 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ fn main() {
|
||||||
Ok(_) => {
|
Ok(_) => {
|
||||||
// We've detected that we are building for docs.rs
|
// We've detected that we are building for docs.rs
|
||||||
// so let's use the vendored `lv_conf.h` file.
|
// so let's use the vendored `lv_conf.h` file.
|
||||||
vendor.clone()
|
vendor.join("include")
|
||||||
}
|
}
|
||||||
Err(_) => panic!(
|
Err(_) => panic!(
|
||||||
"The environment variable {} is required to be defined",
|
"The environment variable {} is required to be defined",
|
||||||
|
|
|
@ -23,10 +23,10 @@ mod tests {
|
||||||
lv_init();
|
lv_init();
|
||||||
|
|
||||||
let horizontal_resolution = lv_disp_get_hor_res(core::ptr::null_mut());
|
let horizontal_resolution = lv_disp_get_hor_res(core::ptr::null_mut());
|
||||||
assert_eq!(horizontal_resolution, 240);
|
assert_eq!(horizontal_resolution, LV_HOR_RES_MAX as i16);
|
||||||
|
|
||||||
let vertical_resolution = lv_disp_get_ver_res(core::ptr::null_mut());
|
let vertical_resolution = lv_disp_get_ver_res(core::ptr::null_mut());
|
||||||
assert_eq!(vertical_resolution, 240);
|
assert_eq!(vertical_resolution, LV_VER_RES_MAX as i16);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue