Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
fwatch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
fwatch
Commits
3d25c74b
Commit
3d25c74b
authored
Aug 27, 2014
by
Theodor-Adrian Stana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gps: Moving things around in the UI
parent
298e6b69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
gpsapp.c
sw/gps/gpsapp.c
+18
-6
No files found.
sw/gps/gpsapp.c
View file @
3d25c74b
...
...
@@ -88,18 +88,21 @@ static void gps_event(struct ui_widget *w, const struct event *evt)
w
->
flags
|=
WF_DIRTY
;
}
static
struct
ui_widget
gps_
screen
=
{
static
struct
ui_widget
gps_
coord_display
=
{
gps_redraw
,
gps_event
,
{
0
,
0
,
127
,
127
},
{
16
,
16
,
111
,
111
},
0
,
WF_ACTIVE
|
WF_VISIBLE
};
//static struct ui_widget coord_screen = {
// NULL,
// NULL,
//};
static
struct
ui_widget
gps_screen
=
{
NULL
,
NULL
,
{
0
,
0
,
127
,
127
},
0
,
WF_ACTIVE
|
WF_VISIBLE
};
static
struct
ui_widget
gps_fix
=
{
NULL
,
...
...
@@ -132,8 +135,17 @@ void main(void *params)
/* Init UI */
ui_clear
();
ui_init_widget
(
&
gps_screen
);
ui_init_widget
(
&
gps_coord_display
);
ui_add_widget
(
&
gps_screen
);
ui_add_child
(
&
gps_screen
,
&
gps_coord_display
);
ui_add_widget
(
&
gps_coord_display
);
// ui_init_widget(&status_bar);
// ui_add_widget(&status_bar);
ui_update
(
NULL
);
while
(
1
)
{
...
...
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