gsdx-osd: Update manager to support DX11

Fix an issue with w coordinate values being 0 which caused issues on DX11.
This commit is contained in:
Kojin 2018-12-14 05:09:42 -05:00 committed by lightningterror
parent 63bbf52219
commit e683ce2994
1 changed files with 6 additions and 6 deletions

View File

@ -234,27 +234,27 @@ void GSOsdManager::RenderGlyph(GSVertexPT1* dst, const glyph_info g, float x, fl
float w = g.bw * (2.0f/m_real_size.x);
float h = g.bh * (2.0f/m_real_size.y);
dst->p = GSVector4(x2 , -y2 , 0.0f, 0.0f);
dst->p = GSVector4(x2 , -y2 , 0.0f, 1.0f);
dst->t = GSVector2(g.tx , 0.0f);
dst->c = color;
++dst;
dst->p = GSVector4(x2 + w, -y2 , 0.0f, 0.0f);
dst->p = GSVector4(x2 + w, -y2 , 0.0f, 1.0f);
dst->t = GSVector2(g.tx + g.tw, 0.0f);
dst->c = color;
++dst;
dst->p = GSVector4(x2 , -y2 - h, 0.0f, 0.0f);
dst->p = GSVector4(x2 , -y2 - h, 0.0f, 1.0f);
dst->t = GSVector2(g.tx , g.ty);
dst->c = color;
++dst;
dst->p = GSVector4(x2 + w, -y2 , 0.0f, 0.0f);
dst->p = GSVector4(x2 + w, -y2 , 0.0f, 1.0f);
dst->t = GSVector2(g.tx + g.tw, 0.0f);
dst->c = color;
++dst;
dst->p = GSVector4(x2 , -y2 - h, 0.0f, 0.0f);
dst->p = GSVector4(x2 , -y2 - h, 0.0f, 1.0f);
dst->t = GSVector2(g.tx , g.ty);
dst->c = color;
++dst;
dst->p = GSVector4(x2 + w, -y2 - h, 0.0f, 0.0f);
dst->p = GSVector4(x2 + w, -y2 - h, 0.0f, 1.0f);
dst->t = GSVector2(g.tx + g.tw, g.ty);
dst->c = color;
++dst;