Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
ec30a0ba
Commit
ec30a0ba
authored
10 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Remove warnings when CONFIG_NXTK_BORDERWIDTH is set to zero. From Pierre-Noel Bouteville
parent
62462d24
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libnx/nxtk/nxtk_drawframe.c
+7
-1
7 additions, 1 deletion
libnx/nxtk/nxtk_drawframe.c
with
7 additions
and
1 deletion
libnx/nxtk/nxtk_drawframe.c
+
7
−
1
View file @
ec30a0ba
...
...
@@ -73,6 +73,7 @@
* Name: nxtk_drawframeside
****************************************************************************/
#if CONFIG_NXTK_BORDERWIDTH > 0
static
void
nxtk_drawframeside
(
FAR
struct
nxtk_framedwindow_s
*
fwnd
,
FAR
const
struct
nxgl_rect_s
*
side
,
FAR
const
struct
nxgl_rect_s
*
bounds
,
...
...
@@ -85,6 +86,7 @@ static void nxtk_drawframeside(FAR struct nxtk_framedwindow_s *fwnd,
nx_fill
((
NXWINDOW
)
fwnd
,
&
intersection
,
color
);
}
}
#endif
/****************************************************************************
* Public Functions
...
...
@@ -110,10 +112,14 @@ static void nxtk_drawframeside(FAR struct nxtk_framedwindow_s *fwnd,
int
nxtk_drawframe
(
FAR
struct
nxtk_framedwindow_s
*
fwnd
,
FAR
const
struct
nxgl_rect_s
*
bounds
)
{
#if CONFIG_NXTK_BORDERWIDTH > 0
struct
nxgl_rect_s
frame
;
#endif
struct
nxgl_size_s
wndsize
;
struct
nxgl_size_s
tbsize
;
#if CONFIG_NXTK_BORDERWIDTH > 0
nxgl_coord_t
thickness
;
#endif
/* Shiny edge:
* Thickness: 1
...
...
@@ -133,7 +139,7 @@ int nxtk_drawframe(FAR struct nxtk_framedwindow_s *fwnd,
thickness
=
CONFIG_NXTK_BORDERWIDTH
-
2
;
#elif CONFIG_NXTK_BORDERWIDTH > 1
thickness
=
CONFIG_NXTK_BORDERWIDTH
-
1
;
#el
se
#el
if CONFIG_NXTK_BORDERWIDTH > 0
thickness
=
CONFIG_NXTK_BORDERWIDTH
;
#endif
...
...
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