Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
canghaiwuhen
OpenXG-RAN
Commits
b9379834
Commit
b9379834
authored
Apr 03, 2019
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
T: minor fix: ensure printing is inside the widget
parent
b39bf79b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
common/utils/T/tracer/gui/xy_plot.c
common/utils/T/tracer/gui/xy_plot.c
+5
-1
No files found.
common/utils/T/tracer/gui/xy_plot.c
View file @
b9379834
...
@@ -130,9 +130,13 @@ static void paint(gui *_gui, widget *_this)
...
@@ -130,9 +130,13 @@ static void paint(gui *_gui, widget *_this)
this
->
common
.
y
+
FLIP
(
y
),
this
->
common
.
y
+
FLIP
(
y
),
this
->
common
.
x
+
this
->
vrule_width
+
5
,
this
->
common
.
x
+
this
->
vrule_width
+
5
,
this
->
common
.
y
+
FLIP
(
y
));
this
->
common
.
y
+
FLIP
(
y
));
/* do not print out of the widget (take care of top) */
y
=
FLIP
(
y
)
-
this
->
label_height
/
2
+
this
->
label_baseline
;
if
(
y
-
this
->
label_baseline
<
0
)
y
=
this
->
label_baseline
;
x_draw_string
(
g
->
x
,
g
->
xwin
,
DEFAULT_FONT
,
FOREGROUND_COLOR
,
x_draw_string
(
g
->
x
,
g
->
xwin
,
DEFAULT_FONT
,
FOREGROUND_COLOR
,
this
->
common
.
x
+
this
->
vrule_width
-
vwidth
-
2
,
this
->
common
.
x
+
this
->
vrule_width
-
vwidth
-
2
,
this
->
common
.
y
+
FLIP
(
y
)
-
this
->
label_height
/
2
+
this
->
label_baseline
,
this
->
common
.
y
+
y
,
v
);
v
);
}
}
break
;
break
;
...
...
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