Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
retro8
Commits
afa143ac
Unverified
Commit
afa143ac
authored
Mar 15, 2022
by
Libretro-Admin
Committed by
GitHub
Mar 15, 2022
Browse files
Merge pull request #12 from phcoder/ps2col
Fix colors on PS2
parents
75743fe2
fd1ec6c9
Pipeline
#120408
passed with stages
in 10 minutes and 16 seconds
Changes
1
Pipelines
123
Hide whitespace changes
Inline
Side-by-side
src/libretro/libretro.cpp
View file @
afa143ac
...
...
@@ -78,7 +78,13 @@ public:
private:
struct
ColorMapper16
{
r8
::
gfx
::
ColorTable
::
pixel_t
operator
()(
uint8_t
r
,
uint8_t
g
,
uint8_t
b
)
const
{
return
((
r
&
0xf8
)
<<
8
)
|
((
g
&
0xfc
)
<<
3
)
|
((
b
&
0xf8
)
>>
3
);
}
r8
::
gfx
::
ColorTable
::
pixel_t
operator
()(
uint8_t
r
,
uint8_t
g
,
uint8_t
b
)
const
{
#ifdef ABGR1555
return
((
b
&
0xf8
)
<<
7
)
|
((
g
&
0xf8
)
<<
2
)
|
((
r
&
0xf8
)
>>
3
);
#else
return
((
r
&
0xf8
)
<<
8
)
|
((
g
&
0xfc
)
<<
3
)
|
((
b
&
0xf8
)
>>
3
);
#endif
}
};
};
...
...
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