CWideScreenFilter: Implement DrawFilter

This commit is contained in:
Luke Street 2020-05-14 19:23:43 -04:00
parent 72880f6286
commit c1f7358d96
2 changed files with 1 additions and 3 deletions

View File

@ -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;

View File

@ -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();