Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Main
Synchronet
Commits
a891d26e
Commit
a891d26e
authored
17 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Clean up warnings.
parent
46cd8361
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/conio/bitmap_con.c
+5
-9
5 additions, 9 deletions
src/conio/bitmap_con.c
src/conio/sdl_con.c
+1
-12
1 addition, 12 deletions
src/conio/sdl_con.c
with
6 additions
and
21 deletions
src/conio/bitmap_con.c
+
5
−
9
View file @
a891d26e
...
...
@@ -390,21 +390,17 @@ int bitmap_loadfont(char *filename)
unsigned
int
fontsize
;
int
fw
;
int
fh
;
int
ch
;
int
x
;
int
y
;
int
charrow
;
int
charcol
;
int
i
;
FILE
*
fontfile
;
if
(
current_font
==-
99
||
current_font
>
(
sizeof
(
conio_fontdata
)
/
sizeof
(
struct
conio_font_data_struct
)
-
2
))
{
for
(
x
=
0
;
conio_fontdata
[
x
].
desc
!=
NULL
;
x
++
)
{
if
(
!
strcmp
(
conio_fontdata
[
x
].
desc
,
"Codepage 437 English"
))
{
current_font
=
x
;
for
(
i
=
0
;
conio_fontdata
[
i
].
desc
!=
NULL
;
i
++
)
{
if
(
!
strcmp
(
conio_fontdata
[
i
].
desc
,
"Codepage 437 English"
))
{
current_font
=
i
;
break
;
}
}
if
(
conio_fontdata
[
x
].
desc
==
NULL
)
if
(
conio_fontdata
[
i
].
desc
==
NULL
)
current_font
=
0
;
}
if
(
current_font
==-
1
)
...
...
This diff is collapsed.
Click to expand it.
src/conio/sdl_con.c
+
1
−
12
View file @
a891d26e
...
...
@@ -241,8 +241,6 @@ struct x11 sdl_x11;
void
RGBtoYUV
(
Uint8
r
,
Uint8
g
,
Uint8
b
,
Uint8
*
yuv_array
,
int
monochrome
,
int
luminance
)
{
int
i
;
if
(
monochrome
)
{
#if 0 /* these are the two formulas that I found on the FourCC site... */
...
...
@@ -311,7 +309,7 @@ void yuv_fillrect(SDL_Overlay *overlay, SDL_Rect *r, int dac_entry)
planar:
{
int
x
,
y
;
int
y
;
Uint8
*
Y
,
*
U
,
*
V
;
int
odd_line
;
int
uvlen
=
(
r
->
w
)
>>
1
;
...
...
@@ -361,9 +359,7 @@ packed:
void
sdl_user_func
(
int
func
,
...)
{
unsigned
int
*
i
;
va_list
argptr
;
void
**
args
;
SDL_Event
ev
;
ev
.
type
=
SDL_USEREVENT
;
...
...
@@ -413,12 +409,9 @@ void sdl_user_func(int func, ...)
/* Called from main thread only */
int
sdl_user_func_ret
(
int
func
,
...)
{
unsigned
int
*
i
;
va_list
argptr
;
void
**
args
;
SDL_Event
ev
;
int
passed
=
FALSE
;
char
*
p
;
sdl
.
mutexP
(
sdl_ufunc_lock
);
ev
.
type
=
SDL_USEREVENT
;
...
...
@@ -559,9 +552,6 @@ void sdl_flush(void)
int
sdl_init_mode
(
int
mode
)
{
struct
video_params
vmode
;
int
idx
;
/* Index into vmode */
int
i
;
int
oldcols
=
vstat
.
cols
;
bitmap_init_mode
(
mode
,
&
bitmap_width
,
&
bitmap_height
);
...
...
@@ -1409,7 +1399,6 @@ int sdl_video_event_thread(void *data)
{
struct
update_rect
*
rect
=
(
struct
update_rect
*
)
ev
.
user
.
data1
;
SDL_Rect
r
;
SDL_Rect
dst
;
int
x
,
y
,
offset
;
if
(
!
win
)
{
...
...
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