Fix lvgl-sys not respecting DEP_LV_CONFIG_PATH #45

Merged
Spadi0 merged 1 commit from fix-lv-conf-include into master 2021-05-19 12:24:01 +00:00
3 changed files with 3 additions and 3 deletions

View file

@ -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",

View file

@ -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);
}
}
}