diff --git a/services/screendemo/test.cpp b/services/screendemo/test.cpp index 527055198904f1d8e51512e360dce6923cae29e3..560df087c0a9724d67bd1fd3a9e3218164f1721d 100644 --- a/services/screendemo/test.cpp +++ b/services/screendemo/test.cpp @@ -48,7 +48,9 @@ using namespace OHOS::Security::AccessToken; namespace { static char const *g_pkgName = "ohos.dsoftbus.tool"; const uint32_t MAX_WINDOW_WIDTH = 2560; - const uint32_t MAX_WINDOW_HEIGHT = 1600; + const uint32_t MAX_WINDOW_HEIGHT = 2772; + const uint32_t DCODE_WIDTH = 1920; + const uint32_t DCODE_HEIGHT = 1080; } vector> QueryRemoteScreenInfo() @@ -317,7 +319,7 @@ static void CreateWindow() auto vdec = make_shared(); - vdec->SetWindowSize(windowWidth, windowHeight); + vdec->SetWindowSize(DCODE_WIDTH, DCODE_HEIGHT); vdec->SetOutputSurface(surface); cout << "start run decoder" << endl; vdec->RunCase();