mirror of https://github.com/AxioDL/metaforce.git
CWideScreenFilter: Implement DrawFilter
This commit is contained in:
parent
72880f6286
commit
c1f7358d96
|
@ -88,8 +88,6 @@ void CWideScreenFilter::draw(const zeus::CColor& color, float t) {
|
|||
}
|
||||
}
|
||||
|
||||
void CWideScreenFilter::DrawFilter(EFilterShape shape, const zeus::CColor& color, float t) {}
|
||||
|
||||
float CWideScreenFilter::SetViewportToMatch(float t) {
|
||||
if (g_Viewport.aspect < 1.7777f) {
|
||||
float targetHeight = g_Viewport.x8_width / 1.7777f;
|
||||
|
|
|
@ -42,7 +42,7 @@ public:
|
|||
explicit CWideScreenFilter(EFilterType type) : m_top(type), m_bottom(type) {}
|
||||
explicit CWideScreenFilter(EFilterType type, const TLockedToken<CTexture>&) : CWideScreenFilter(type) {}
|
||||
void draw(const zeus::CColor& color, float t);
|
||||
void DrawFilter(EFilterShape shape, const zeus::CColor& color, float t);
|
||||
void DrawFilter(EFilterShape shape, const zeus::CColor& color, float t) { draw(color, t); }
|
||||
|
||||
static float SetViewportToMatch(float t);
|
||||
static void SetViewportToFull();
|
||||
|
|
Loading…
Reference in New Issue