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
lizhongxiao
OpenXG-RAN
Commits
57240cc0
Commit
57240cc0
authored
Jun 09, 2016
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
switch to utf-8
parent
b0e50688
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
common/utils/T/tracer/gui/x.c
common/utils/T/tracer/gui/x.c
+2
-2
No files found.
common/utils/T/tracer/gui/x.c
View file @
57240cc0
...
@@ -331,7 +331,7 @@ void x_text_get_dimensions(x_connection *_c, int font, const char *t,
...
@@ -331,7 +331,7 @@ void x_text_get_dimensions(x_connection *_c, int font, const char *t,
struct
x_connection
*
c
=
_c
;
struct
x_connection
*
c
=
_c
;
XGlyphInfo
ext
;
XGlyphInfo
ext
;
XftTextExtents8
(
c
->
d
,
c
->
fonts
[
font
],
(
FcChar8
*
)
t
,
strlen
(
t
),
&
ext
);
XftTextExtents
Utf
8
(
c
->
d
,
c
->
fonts
[
font
],
(
FcChar8
*
)
t
,
strlen
(
t
),
&
ext
);
*
width
=
ext
.
width
;
*
width
=
ext
.
width
;
*
height
=
c
->
fonts
[
font
]
->
height
;
*
height
=
c
->
fonts
[
font
]
->
height
;
...
@@ -372,7 +372,7 @@ void x_draw_string(x_connection *_c, x_window *_w, int font, int color,
...
@@ -372,7 +372,7 @@ void x_draw_string(x_connection *_c, x_window *_w, int font, int color,
struct
x_connection
*
c
=
_c
;
struct
x_connection
*
c
=
_c
;
struct
x_window
*
w
=
_w
;
struct
x_window
*
w
=
_w
;
int
tlen
=
strlen
(
t
);
int
tlen
=
strlen
(
t
);
XftDrawString8
(
w
->
xft
,
&
c
->
xft_colors
[
color
],
c
->
fonts
[
font
],
XftDrawString
Utf
8
(
w
->
xft
,
&
c
->
xft_colors
[
color
],
c
->
fonts
[
font
],
x
,
y
,
(
const
unsigned
char
*
)
t
,
tlen
);
x
,
y
,
(
const
unsigned
char
*
)
t
,
tlen
);
}
}
...
...
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