From e921d111017126b70883e8615c516a286ec55bcd Mon Sep 17 00:00:00 2001 From: qinlong0101 Date: Tue, 17 May 2022 15:02:00 +0800 Subject: [PATCH] modify screen codex Signed-off-by: qinlong0101 --- .../sinkservice/screenregionmgr/src/screenregionmgr.cpp | 4 ++-- .../sourceservice/dscreenmgr/src/dscreen_manager.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/services/screenservice/sinkservice/screenregionmgr/src/screenregionmgr.cpp b/services/screenservice/sinkservice/screenregionmgr/src/screenregionmgr.cpp index 7969d524..d01e4ff4 100644 --- a/services/screenservice/sinkservice/screenregionmgr/src/screenregionmgr.cpp +++ b/services/screenservice/sinkservice/screenregionmgr/src/screenregionmgr.cpp @@ -97,8 +97,8 @@ void ScreenRegionManager::GetScreenDumpInfo(std::string &result) if (videoParam == nullptr) { continue; } - int32_t screenHeight = videoParam->GetScreenHeight(); - int32_t screenWidth = videoParam->GetScreenWidth(); + uint32_t screenHeight = videoParam->GetScreenHeight(); + uint32_t screenWidth = videoParam->GetScreenWidth(); int32_t windowId = screenRegion->GetWindowId(); std::string screenInfo = " \"clientWindowId\" : \"" + std::to_string(windowId) + "\",\n" + " \"remoteScreenId\" : \"" + std::to_string(screenId) + "\",\n" + diff --git a/services/screenservice/sourceservice/dscreenmgr/src/dscreen_manager.cpp b/services/screenservice/sourceservice/dscreenmgr/src/dscreen_manager.cpp index b7c93753..4a1edc4e 100644 --- a/services/screenservice/sourceservice/dscreenmgr/src/dscreen_manager.cpp +++ b/services/screenservice/sourceservice/dscreenmgr/src/dscreen_manager.cpp @@ -329,8 +329,8 @@ void DScreenManager::GetScreenDumpInfo(std::string &result) if (videoParam == nullptr) { continue; } - int32_t screenHeight = videoParam->GetScreenHeight(); - int32_t screenWidth = videoParam->GetScreenWidth(); + uint32_t screenHeight = videoParam->GetScreenHeight(); + uint32_t screenWidth = videoParam->GetScreenWidth(); DScreenState state = dScreen->GetState(); std::string screenState = stateMap.find(state) == stateMap.end() ? "unknown state" : stateMap.find(state)->second; -- Gitee