From 6c774f7b63a13cd60ce5bb0efff7aac5e82ac5ee Mon Sep 17 00:00:00 2001 From: payton Date: Wed, 20 Dec 2023 15:38:06 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E5=8C=96=E8=BF=9B=E5=BA=A6=E6=9D=A1?= =?UTF-8?q?=EF=BC=8C=E6=9C=89=E5=B7=AE2=E4=B8=AA=E5=83=8F=E7=B4=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../novatek/common/nvt_logo/nvt_display_for_fwupdate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BSP/u-boot/board/novatek/common/nvt_logo/nvt_display_for_fwupdate.c b/BSP/u-boot/board/novatek/common/nvt_logo/nvt_display_for_fwupdate.c index c00654e27..bce0904a0 100755 --- a/BSP/u-boot/board/novatek/common/nvt_logo/nvt_display_for_fwupdate.c +++ b/BSP/u-boot/board/novatek/common/nvt_logo/nvt_display_for_fwupdate.c @@ -78,7 +78,7 @@ #define LEFTFRAME_ROTATE270 3 #define RIGHTFRAME_ROTATE270 3 #define BAR_X_ROTATE270 36 -#define BAR_Y_ROTATE270 46 +#define BAR_Y_ROTATE270 45 #define BAR_W_ROTATE270 10 //Progressive bar and drawing by CPU. The x-offset is movable #define BAR_H_ROTATE270 8 #define STRING1_X_ROTATE270 36 @@ -951,7 +951,7 @@ void nvt_display_draw(UINT32 u32Id) //printf("g_uiPinPongIdx:%lu g_uiXBarStep:%lu g_uiBarWtmp:%lu tmp:%lu\r\n", g_uiPinPongIdx,g_uiXBarStep,g_uiBarWtmp, (g_uiStr6_h - g_uiBarW)); g_uiXBarStep++; g_uiBarWtmp = g_uiXBarStep*g_uiBarW; - if(g_uiBarWtmp > g_uiStr6_h) + if((g_uiBarWtmp > g_uiStr6_h) || (g_uiXBarStep >= g_uiTotalBarNum)) { g_uiBarWtmp = g_uiStr6_h; } @@ -1312,7 +1312,7 @@ void nvt_display_config(UINT32 config_id, UINT32 vlaue) g_uiTotalBarNum = vlaue*2; //wrtie partition + read back partition g_uiBarW = g_uiStr6_h/(vlaue*2); g_uiBarH = g_uiStr6_w; - //printf("g_uiBarW:%lu\r\n", g_uiBarW); + //printf("g_uiBarW:%lu g_uiBarH:%lu\r\n", g_uiBarW, g_uiBarH); break; } }