ref: e218b68df7d26a9394f27252ff34c1d96c38e35f
dir: /src/Fade.h/
// THIS IS DECOMPILED PROPRIETARY CODE - USE AT YOUR OWN RISK. // // The original code belongs to Daisuke "Pixel" Amaya. // // Modifications and custom code are under the MIT licence. // See LICENCE.txt for details. #pragma once #include "CommonDefines.h" #include "WindowsWrapper.h" #define FADE_WIDTH (((WINDOW_WIDTH - 1) / 16) + 1) #define FADE_HEIGHT (((WINDOW_HEIGHT - 1) / 16) + 1) typedef struct FADE FADE; struct FADE { int mode; BOOL bMask; int count; signed char ani_no[FADE_HEIGHT][FADE_WIDTH]; signed char flag[FADE_HEIGHT][FADE_WIDTH]; // Not a BOOLEAN (those are unsigned) signed char dir; }; extern FADE gFade; void InitFade(void); void SetFadeMask(void); void ClearFade(void); void StartFadeOut(signed char dir); void StartFadeIn(signed char dir); void ProcFade(void); void PutFade(void); BOOL GetFadeActive(void);