From ff889cbe462763c06d211d9880d8da060185e50e Mon Sep 17 00:00:00 2001 From: y1135885 Date: Fri, 19 May 2023 17:49:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: y1135885 --- host/smartperf/client/client_command_fps/main.cpp | 4 ++-- .../src/main/ets/common/ui/floatwindow/FloatWindowFun.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/host/smartperf/client/client_command_fps/main.cpp b/host/smartperf/client/client_command_fps/main.cpp index 14b5be8a2..2d9630792 100644 --- a/host/smartperf/client/client_command_fps/main.cpp +++ b/host/smartperf/client/client_command_fps/main.cpp @@ -142,7 +142,7 @@ static void ProcessResult(FILE *fp, FpsConfig &fpsConfig, FpsInfo &fpsInfo) if (frameReadyTime == 0) { fpsConfig.zeroNum++; continue; - } + } if (fpsConfig.lastReadyTime >= frameReadyTime) { fpsConfig.lastReadyTime = -1; continue; @@ -317,7 +317,7 @@ int main(int argc, char *argv[]) } FpsConfig fpsConfig; FpsConfig fpsUniteConfig; - gfpsInfo = GetSurfaceFrame(layerName, fpsConfig); + gfpsInfo = GetSurfaceFrame(layerName, fpsConfig); gfpsUniteInfo = GetSurfaceFrame(uniteLayer, fpsUniteConfig); if (gfpsUniteInfo.fps > gfpsInfo.fps) { diff --git a/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/floatwindow/FloatWindowFun.ts b/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/floatwindow/FloatWindowFun.ts index e0c214cea..8be28ae83 100644 --- a/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/floatwindow/FloatWindowFun.ts +++ b/host/smartperf/client/client_ui/entry/src/main/ets/common/ui/floatwindow/FloatWindowFun.ts @@ -31,7 +31,7 @@ export class FloatWindowFun { static initAllFun() { globalThis.CreateFloatingWindow = (() => { //5.5SP2 2106 改成 8 - wm.create(globalThis.abilityContext, 'sp_floatingWindow', window.WindowType_TYPE_FLOAT).then((floatWin) => { + wm.create(globalThis.abilityContext, 'sp_floatingWindow', window.WindowType_TYPE_FLOAT).then((floatWin) => { floatWin.moveTo(this.floatingWindowOffsetX, this.floatingWindowOffsetY).then(() => { floatWin.resetSize(this.atWidth*globalThis.coefficient, this.atWidth*globalThis.coefficient).then(() => { floatWin.getProperties().then((property) => { @@ -71,7 +71,7 @@ export class FloatWindowFun { }) globalThis.CreateTitleWindow = (() => { - wm.create(globalThis.abilityContext, 'sp_TitleWindow', window.WindowType_TYPE_FLOAT).then((floatWin) => { + wm.create(globalThis.abilityContext, 'sp_TitleWindow', window.WindowType_TYPE_FLOAT).then((floatWin) => { floatWin.moveTo(this.titleWindowOffsetX, this.titleWindowOffsetY).then(() => { floatWin.resetSize(350*globalThis.coefficient, 480*globalThis.coefficient).then(() => { floatWin.getProperties().then((property) => {