From a5fd3f0bd68bcc106aec82509426f900ea393047 Mon Sep 17 00:00:00 2001 From: penglei <1624952103@qq.com> Date: Fri, 26 Sep 2025 10:06:07 +0800 Subject: [PATCH] =?utf8?q?=E4=BC=98=E5=8C=96=E9=9B=B7=E9=B8=9FLCD=E6=B5=8B?= =?utf8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/zhihui/leiniao/factory_test/LcdTestModel.cpp | 4 ++-- code/sdk/zhihui/leiniao/factory_test/LcdTestPresenter.cpp | 8 ++++---- code/sdk/zhihui/leiniao/factory_test/LcdTestView.cpp | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/code/sdk/zhihui/leiniao/factory_test/LcdTestModel.cpp b/code/sdk/zhihui/leiniao/factory_test/LcdTestModel.cpp index 47f96e23f..51e1ccb6d 100644 --- a/code/sdk/zhihui/leiniao/factory_test/LcdTestModel.cpp +++ b/code/sdk/zhihui/leiniao/factory_test/LcdTestModel.cpp @@ -50,7 +50,7 @@ namespace OHOS void LcdTestModel::Init() { isTestActive_ = false; - currentColor_ = LcdTestColor::White; + currentColor_ = LcdTestColor::Black; } void LcdTestModel::SetTestStatus(bool isActive) @@ -103,6 +103,6 @@ namespace OHOS void LcdTestModel::ResetColorIndex() { - currentColor_ = LcdTestColor::White; + currentColor_ = LcdTestColor::Black; } } diff --git a/code/sdk/zhihui/leiniao/factory_test/LcdTestPresenter.cpp b/code/sdk/zhihui/leiniao/factory_test/LcdTestPresenter.cpp index e1cc87a25..baea3f8b4 100644 --- a/code/sdk/zhihui/leiniao/factory_test/LcdTestPresenter.cpp +++ b/code/sdk/zhihui/leiniao/factory_test/LcdTestPresenter.cpp @@ -79,19 +79,19 @@ namespace OHOS } isTestRunning_ = true; - currentColorIndex_ = 4; // 从白色开始 + currentColorIndex_ = 5; // 从黑色开始 // 更新Model状态 if (LcdTestModel::GetInstance()) { LcdTestModel::GetInstance()->SetTestStatus(true); - LcdTestModel::GetInstance()->SetCurrentColor(LcdTestColor::White); + LcdTestModel::GetInstance()->SetCurrentColor(LcdTestColor::Black); } // 通知View启动测试 if (view_) { view_->StartLcdTest(); - // 立即设置白色 - view_->SetLcdTestColor(LcdTestColor::White); + // 立即设置黑色 + view_->SetLcdTestColor(LcdTestColor::Black); } } diff --git a/code/sdk/zhihui/leiniao/factory_test/LcdTestView.cpp b/code/sdk/zhihui/leiniao/factory_test/LcdTestView.cpp index b003737f4..f2045d128 100644 --- a/code/sdk/zhihui/leiniao/factory_test/LcdTestView.cpp +++ b/code/sdk/zhihui/leiniao/factory_test/LcdTestView.cpp @@ -10,7 +10,7 @@ namespace OHOS { - static const uint32_t BACK_GROUND_COLOR = 0xfff6f6f6; + static const uint32_t BACK_GROUND_COLOR = 0xff000000; static LcdTestView *g_pLcdTestView = nullptr; LcdTestView::LcdTestView() @@ -140,10 +140,10 @@ namespace OHOS } } - // 设置全屏显示,默认白色 + // 设置全屏显示,默认黑色 testView_->SetPosition(0, 0, HORIZONTAL_RESOLUTION, VERTICAL_RESOLUTION); testView_->SetStyle(STYLE_BACKGROUND_OPA, 0xff); - testView_->SetStyle(STYLE_BACKGROUND_COLOR, 0xffffffff); // 白色 + testView_->SetStyle(STYLE_BACKGROUND_COLOR, 0xff000000); // 黑色 testView_->SetTouchable(true); testView_->SetDraggable(true); testView_->SetVisible(true); @@ -155,7 +155,7 @@ namespace OHOS rootView->Invalidate(); isTestActive_ = true; - printf("LCD test started - WHITE background\n"); + printf("LCD test started - BLACK background\n"); } void LcdTestView::StopLcdTest() -- 2.17.1