Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
0e9287e3
Commit
0e9287e3
authored
Jan 25, 2004
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* x11/x11_display.cpp: only 8 bpp mode was working...
parent
a42c3ab3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
modules/gui/skins2/x11/x11_display.cpp
modules/gui/skins2/x11/x11_display.cpp
+9
-2
No files found.
modules/gui/skins2/x11/x11_display.cpp
View file @
0e9287e3
...
...
@@ -2,7 +2,7 @@
* x11_display.cpp
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: x11_display.cpp,v 1.
3 2004/01/25 18:41:08
asmax Exp $
* $Id: x11_display.cpp,v 1.
4 2004/01/25 18:46:37
asmax Exp $
*
* Authors: Cyril Deguet <asmax@via.ecp.fr>
* Olivier Teulire <ipkiss@via.ecp.fr>
...
...
@@ -367,7 +367,14 @@ unsigned long X11Display::getPixelValue( uint8_t r, uint8_t g, uint8_t b ) const
value
=
(
((
uint32_t
)
r
>>
m_redRightShift
)
<<
m_redLeftShift
)
|
(
((
uint32_t
)
g
>>
m_greenRightShift
)
<<
m_greenLeftShift
)
|
(
((
uint32_t
)
b
>>
m_blueRightShift
)
<<
m_blueLeftShift
);
return
255
-
value
;
if
(
m_pixelSize
==
1
)
{
return
255
-
value
;
}
else
{
return
value
;
}
}
...
...
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