Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osdd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
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
Jiří Kalvoda
osdd
Commits
62e4a1bc
Commit
62e4a1bc
authored
4 years ago
by
Jiří Kalvoda
Browse files
Options
Downloads
Patches
Plain Diff
Remove limit for line length
parent
dec6ff0c
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
osdd-set.h
+1
-3
1 addition, 3 deletions
osdd-set.h
osdd.c
+1
-1
1 addition, 1 deletion
osdd.c
with
2 additions
and
4 deletions
osdd-set.h
+
1
−
3
View file @
62e4a1bc
...
...
@@ -17,8 +17,6 @@ typedef struct _IO_FILE FILE;
struct
display_state
;
#define OSD_MAX_LINE_LEN 1024
#define OSD_TRIE_LEN (26+10+1)
struct
osd_set_trie
...
...
@@ -44,7 +42,7 @@ struct osd_line {
char
*
outline_color
;
int
outline_width
;
union
{
// Data dependent on type
char
text
[
OSD_MAX_LINE_LEN
]
;
// in UTF-8
char
*
text
;
// in UTF-8
unsigned
int
percent
;
// 0..100 for percentages and slider
}
u
;
};
...
...
This diff is collapsed.
Click to expand it.
osdd.c
+
1
−
1
View file @
62e4a1bc
...
...
@@ -230,7 +230,7 @@ parse_msg(unsigned char *buf, int len)
if
(
!
key
[
0
])
{
l
=
msg_add_line
(
msg
,
OSD_TYPE_TEXT
);
sprintf
(
l
->
u
.
text
,
"%.*s"
,
OSD_MAX_LINE_LEN
,
val
)
;
l
->
u
.
text
=
val
;
}
else
if
(
!
strcmp
(
key
,
"percentage"
)
||
!
strcmp
(
key
,
"percent"
))
{
...
...
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