mirror of
https://github.com/openharmony/global_resmgr_standard.git
synced 2026-07-19 19:33:32 -04:00
@@ -183,7 +183,6 @@ ohos_shared_library("librawfile") {
|
||||
|
||||
deps = [
|
||||
"//base/global/resmgr_standard/interfaces/native/resource:librawfile_ndk",
|
||||
"//utils/native/base:utils",
|
||||
]
|
||||
|
||||
public_deps = [
|
||||
|
||||
@@ -457,7 +457,8 @@ RState ResourceManagerImpl::RecalculateFloat(const std::string &unit, float &res
|
||||
GetResConfig(rc);
|
||||
ScreenDensity srcDensity = rc.GetScreenDensity();
|
||||
if (srcDensity == SCREEN_DENSITY_NOT_SET) {
|
||||
return ERROR;
|
||||
HILOG_INFO("RecalculateFloat srcDensity SCREEN_DENSITY_NOT_SET ");
|
||||
return SUCCESS;
|
||||
}
|
||||
float density = srcDensity / DEFAULT_DENSITY;
|
||||
if (unit == VIRTUAL_PIXEL) {
|
||||
|
||||
Reference in New Issue
Block a user