Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dos
flow3r firmware
Commits
a4c4b65d
Commit
a4c4b65d
authored
Sep 17, 2023
by
pippin
Committed by
pippin
Sep 17, 2023
Browse files
Options
Downloads
Patches
Plain Diff
st3m_gfx: doing clearing of fbs in rast task
parent
55cb696c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
components/st3m/st3m_gfx.c
+10
-3
10 additions, 3 deletions
components/st3m/st3m_gfx.c
with
10 additions
and
3 deletions
components/st3m/st3m_gfx.c
+
10
−
3
View file @
a4c4b65d
...
...
@@ -316,6 +316,8 @@ static void st3m_gfx_init_palette(st3m_gfx_mode mode) {
}
}
static
unsigned
int
st3m_clear_fbs
=
0
;
st3m_gfx_mode
st3m_gfx_set_mode
(
st3m_gfx_mode
mode
)
{
if
((
mode
==
_st3m_gfx_mode
)
||
(
0
!=
(
default_mode
&
st3m_gfx_lock
)))
{
st3m_gfx_init_palette
(
...
...
@@ -323,8 +325,7 @@ st3m_gfx_mode st3m_gfx_set_mode(st3m_gfx_mode mode) {
return
(
mode
?
mode
:
default_mode
);
}
memset
(
st3m_fb
,
0
,
sizeof
(
st3m_fb
));
memset
(
st3m_fb2
,
0
,
sizeof
(
st3m_fb2
));
st3m_clear_fbs
=
1
;
if
(
mode
==
st3m_gfx_default
)
mode
=
default_mode
;
...
...
@@ -438,7 +439,13 @@ static void st3m_gfx_task(void *_arg) {
st3m_gfx_viewport_transform
(
fb_RGB8_ctx
);
}
if
((
set_mode
&
st3m_gfx_direct_ctx
)
==
0
)
if
(
st3m_clear_fbs
)
{
memset
(
st3m_fb
,
0
,
sizeof
(
st3m_fb
));
memset
(
st3m_fb2
,
0
,
sizeof
(
st3m_fb2
));
st3m_clear_fbs
=
0
;
}
if
(((
set_mode
&
st3m_gfx_direct_ctx
)
==
0
))
ctx_render_ctx
(
drawlist
->
user_ctx
,
user_target
);
if
((
scale
>
1
)
||
((
set_mode
&
st3m_gfx_osd
)
&&
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment