Decompile fn_17842 (CMode::DrawFadeIn)
Batch #16103 by Yommy: 1 byte-identical, 0 confirmed by peer review. - fn_17842 CMode::DrawFadeIn: byte-identical Merged automatically: every function is byte-identical to the original.
This commit is contained in:
parent
c48d313e88
commit
385dbd4a7d
1 changed files with 2 additions and 1 deletions
|
|
@ -21,6 +21,7 @@ void CMode::DrawFadeIn() {
|
|||
|
||||
const std::uint32_t elapsed = timeGetTime() - g_modeFadeTick;
|
||||
if (elapsed < 255) {
|
||||
DrawAlphaRectangle(0, 0, g_renderer->viewport.width, g_renderer->viewport.height, (255 - elapsed) << 24);
|
||||
const int alpha = 255 - elapsed;
|
||||
DrawAlphaRectangle(0, 0, g_renderer->viewport.width, g_renderer->viewport.height, alpha << 24);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue