Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc-1.1
Commits
9451c9b9
Commit
9451c9b9
authored
Jan 09, 2001
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
. just removed a forgotten debug message in the setpalette code
parent
cbb9cfbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
plugins/sdl/vout_sdl.c
plugins/sdl/vout_sdl.c
+10
-11
No files found.
plugins/sdl/vout_sdl.c
View file @
9451c9b9
...
...
@@ -186,6 +186,7 @@ int vout_SDLManage( vout_thread_t *p_vout )
return
(
0
);
}
/*****************************************************************************
* vout_SDLSetPalette: sets an 8 bpp palette
*****************************************************************************
...
...
@@ -198,25 +199,23 @@ void vout_SDLSetPalette( p_vout_thread_t p_vout, u16 *red, u16 *green, u16 *blue
/* Create a display surface with a grayscale palette */
SDL_Color
colors
[
256
];
int
i
;
intf_ErrMsgImm
(
"palettin'
\n
"
);
/* Fill colors with color information */
for
(
i
=
0
;
i
<
256
;
i
++
){
colors
[
i
].
r
=
red
[
i
]
>>
8
;
colors
[
i
].
g
=
green
[
i
]
>>
8
;
colors
[
i
].
b
=
blue
[
i
]
>>
8
;
for
(
i
=
0
;
i
<
256
;
i
++
)
{
colors
[
i
].
r
=
red
[
i
]
>>
8
;
colors
[
i
].
g
=
green
[
i
]
>>
8
;
colors
[
i
].
b
=
blue
[
i
]
>>
8
;
}
/* Set palette */
if
(
SDL_SetColors
(
p_vout
->
p_sys
->
p_display
,
colors
,
0
,
256
)
==
0
)
intf_ErrMsgImm
(
"error
\n
"
);
if
(
SDL_SetColors
(
p_vout
->
p_sys
->
p_display
,
colors
,
0
,
256
)
==
0
)
{
intf_ErrMsg
(
"vout error: failed setting palette
\n
"
);
}
}
/*****************************************************************************
* vout_SDLDisplay: displays previously rendered output
*****************************************************************************
...
...
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