告警清理

Signed-off-by: cxy20001123 <chenxingyu34@h-partners.com>
This commit is contained in:
cxy20001123 2024-09-29 03:26:24 +00:00
parent f10f5fe244
commit 14c39b8e9a
2 changed files with 5 additions and 5 deletions

View File

@ -77,8 +77,8 @@ private:
ScreenId screenGroupId_ { SCREEN_ID_INVALID };
int32_t offsetX_ { 0 };
int32_t offsetY_ { 0 };
int32_t width_ { 0 };
int32_t height_ { 0 };
uint32_t width_ { 0 };
uint32_t height_ { 0 };
uint32_t refreshRate_ { 0 };
float virtualPixelRatio_ { 1.0f };
Rotation rotation_ { Rotation::ROTATION_0 };

View File

@ -599,9 +599,9 @@ sptr<AbstractScreenGroup> AbstractScreenController::AddAsSuccedentScreenLocked(s
for (auto& child : screenGroup->GetChildren()) {
WLOGD("AddAsSuccedentScreenLocked. defaultScreen rotation:%d", child->rotation_);
if (child->rotation_ == Rotation::ROTATION_90 || child->rotation_ == Rotation::ROTATION_270) {
point.posX_ += child->GetActiveScreenMode()->height_;
point.posX_ += static_cast<int32_t>(child->GetActiveScreenMode()->height_);
} else {
point.posX_ += child->GetActiveScreenMode()->width_;
point.posX_ += static_cast<int32_t>(child->GetActiveScreenMode()->width_);
}
}
WLOGD("AddAsSuccedentScreenLocked. point:[%d %d]", point.posX_, point.posY_);
@ -804,7 +804,7 @@ void AbstractScreenController::UpdateScreenGroupLayout(sptr<AbstractScreenGroup>
});
Point point;
int width = 0;
uint32_t width = 0;
for (auto& screen : screens) {
auto mode = screen->GetActiveScreenMode();
if (!mode) {