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
melonDS
Commits
5c3b7b5c
Commit
5c3b7b5c
authored
Mar 04, 2017
by
StapleButter
Browse files
confirm that 2D brightness-up effect does x=x+(63-x)*factor
parent
2a33a5c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
GPU2D.cpp
View file @
5c3b7b5c
...
...
@@ -754,7 +754,6 @@ void GPU2D::DrawScanline_Mode1(u32 line, u32* dst)
u32
g
=
val1
&
0x003F00
;
u32
b
=
val1
&
0x3F0000
;
// TODO: confirm (or not) that it's 63 and not 62
r
+=
((
0x00003F
-
r
)
*
EVY
)
>>
4
;
g
+=
(((
0x003F00
-
g
)
*
EVY
)
>>
4
)
&
0x003F00
;
b
+=
(((
0x3F0000
-
b
)
*
EVY
)
>>
4
)
&
0x3F0000
;
...
...
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