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