Made gFade static
We don't need to leak all this
This commit is contained in:
parent
88ed2d6eab
commit
5754da507d
2 changed files with 15 additions and 15 deletions
16
src/Fade.cpp
16
src/Fade.cpp
|
@ -2,12 +2,26 @@
|
|||
|
||||
#include <string.h>
|
||||
|
||||
#include "CommonDefines.h"
|
||||
#include "WindowsWrapper.h"
|
||||
|
||||
#include "Draw.h"
|
||||
#include "Game.h"
|
||||
|
||||
FADE gFade;
|
||||
#define FADE_WIDTH (((WINDOW_WIDTH - 1) / 16) + 1)
|
||||
#define FADE_HEIGHT (((WINDOW_HEIGHT - 1) / 16) + 1)
|
||||
|
||||
struct FADE
|
||||
{
|
||||
int mode;
|
||||
BOOL bMask;
|
||||
int count;
|
||||
char ani_no[FADE_HEIGHT][FADE_WIDTH];
|
||||
BOOLEAN flag[FADE_HEIGHT][FADE_WIDTH];
|
||||
char dir;
|
||||
};
|
||||
|
||||
static FADE gFade;
|
||||
static unsigned long mask_color;
|
||||
|
||||
void InitFade()
|
||||
|
|
14
src/Fade.h
14
src/Fade.h
|
@ -1,21 +1,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "CommonDefines.h"
|
||||
#include "WindowsWrapper.h"
|
||||
|
||||
#define FADE_WIDTH (((WINDOW_WIDTH - 1) >> 4) + 1)
|
||||
#define FADE_HEIGHT (((WINDOW_HEIGHT - 1) >> 4) + 1)
|
||||
|
||||
struct FADE
|
||||
{
|
||||
int mode;
|
||||
BOOL bMask;
|
||||
int count;
|
||||
char ani_no[FADE_HEIGHT][FADE_WIDTH];
|
||||
BOOLEAN flag[FADE_HEIGHT][FADE_WIDTH];
|
||||
char dir;
|
||||
};
|
||||
|
||||
void InitFade();
|
||||
void SetFadeMask();
|
||||
void ClearFade();
|
||||
|
|
Loading…
Add table
Reference in a new issue