mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 22:56:52 +01:00
Revert r6561... (yep, it was actually right before)
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6562 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
188aef2f88
commit
077c101579
@ -399,16 +399,18 @@ void drawShadedTexSubQuad(IDirect3DTexture9 *texture,
|
|||||||
{
|
{
|
||||||
float sw = 1.0f /(float) SourceWidth;
|
float sw = 1.0f /(float) SourceWidth;
|
||||||
float sh = 1.0f /(float) SourceHeight;
|
float sh = 1.0f /(float) SourceHeight;
|
||||||
|
float dw = 1.0f /(float) DestWidth;
|
||||||
|
float dh = 1.0f /(float) DestHeight;
|
||||||
float u1= rSource->left * sw;
|
float u1= rSource->left * sw;
|
||||||
float u2= rSource->right * sw;
|
float u2= rSource->right * sw;
|
||||||
float v1= rSource->top * sh;
|
float v1= rSource->top * sh;
|
||||||
float v2= rSource->bottom * sh;
|
float v2= rSource->bottom * sh;
|
||||||
|
|
||||||
struct Q2DVertex { float x,y,z,rhw,u,v,w,h,L,T,R,B; } coords[4] = {
|
struct Q2DVertex { float x,y,z,rhw,u,v,w,h,L,T,R,B; } coords[4] = {
|
||||||
{ rDest->left - 0.5f, rDest->top - 0.5f, 1.0f,1.0f, u1, v2, sw, sh,u1,v1,u2,v2},
|
{ rDest->left - dw , rDest->top + dh, 1.0f,1.0f, u1, v2, sw, sh,u1,v1,u2,v2},
|
||||||
{ rDest->left - 0.5f, rDest->bottom - 0.5f, 1.0f,1.0f, u1, v1, sw, sh,u1,v1,u2,v2},
|
{ rDest->left - dw , rDest->bottom + dh, 1.0f,1.0f, u1, v1, sw, sh,u1,v1,u2,v2},
|
||||||
{ rDest->right - 0.5f, rDest->top - 0.5f, 1.0f,1.0f, u2, v2, sw, sh,u1,v1,u2,v2},
|
{ rDest->right - dw , rDest->top + dh, 1.0f,1.0f, u2, v2, sw, sh,u1,v1,u2,v2},
|
||||||
{ rDest->right - 0.5f, rDest->bottom - 0.5f, 1.0f,1.0f, u2, v1, sw, sh,u1,v1,u2,v2}
|
{ rDest->right - dw , rDest->bottom + dh, 1.0f,1.0f, u2, v1, sw, sh,u1,v1,u2,v2}
|
||||||
};
|
};
|
||||||
dev->SetVertexShader(Vshader);
|
dev->SetVertexShader(Vshader);
|
||||||
dev->SetPixelShader(PShader);
|
dev->SetPixelShader(PShader);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user