Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
VC66_7C
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISUZU
VC66_7C
Commits
0456ea0f
Commit
0456ea0f
authored
May 30, 2022
by
hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整WET无效时的显示BUG
parent
29f9d661
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
48 deletions
+48
-48
GUI.c
source/Application/Graphic/GUI/GUI.c
+48
-48
No files found.
source/Application/Graphic/GUI/GUI.c
View file @
0456ea0f
...
...
@@ -581,56 +581,56 @@ void GUI_WetGas_Dispaly(uint8_t Mode)
current_value
=
GetGaugesCurrentPos
(
WETGasGauges
);
current_Flag
=
Common_Get_WET_Valid
();
/*有效性判断用*/
switch
(
current_value
)
{
case
0x14u
:
/*20*/
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x13
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x13u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x12
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x12u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x11
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x11u
:
/*17*/
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x10
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x10u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x0F
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x0Fu
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x0E
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x0Eu
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x0D
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x0Du
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x0C
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x0Cu
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x0B
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x0Bu
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x0A
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x0Au
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x09
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x09u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x08
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x08u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x07
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x07u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x06
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x06u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x05
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x05u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x04
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x04u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x03
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x03u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x02
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x02u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x01
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x01u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x00
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
break
;
default:
GUI_General_Display
(
WET_Sprite
,
SpriteSize
,
GUI_BLENDMODE_SRC_OVER
);
break
;
}
if
((
current_value
<=
17u
)
&&
(
current_Flag
==
1u
))
{
switch
(
current_value
)
{
case
0x14u
:
/*20*/
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x13
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x13u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x12
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x12u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x11
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x11u
:
/*17*/
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x10
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x10u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x0F
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x0Fu
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x0E
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x0Eu
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x0D
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x0Du
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x0C
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x0Cu
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x0B
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x0Bu
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x0A
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x0Au
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x09
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x09u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x08
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x08u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x07
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x07u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x06
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x06u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x05
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x05u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x04
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x04u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x03
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x03u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x02
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x02u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x01
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
case
0x01u
:
GUI_Translate_Display
(
WET_Sprite
,
CN_qiyazouge_01
,
(
145u
+
8u
*
0x00
),
405u
,
GUI_BLENDMODE_SRC_OVER
);
break
;
default:
GUI_General_Display
(
WET_Sprite
,
SpriteSize
,
GUI_BLENDMODE_SRC_OVER
);
break
;
}
GUI_General_Display
(
WET_Sprite
,
CN_qiyafuhaodeng
,
GUI_BLENDMODE_SRC_OVER
);
/*气压符号灯。*/
GUI_General_Display
(
WET_Sprite
,
CN_qiya
,
GUI_BLENDMODE_SRC_OVER
);
/*刷长条的气压表框。*/
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment