WinRT: fixed one scaling bug (more remain) in the Direct3D 11.1 renderer
authorDavid Ludwig <dludwig@pobox.com>
Tue, 12 Feb 2013 21:25:26 -0500
changeset 842761794d3b1d89
parent 8426 9775bb101357
child 8428 68c454170403
WinRT: fixed one scaling bug (more remain) in the Direct3D 11.1 renderer
src/render/direct3d11/SDL_render_d3d11.cpp
     1.1 --- a/src/render/direct3d11/SDL_render_d3d11.cpp	Tue Feb 12 20:49:26 2013 -0500
     1.2 +++ b/src/render/direct3d11/SDL_render_d3d11.cpp	Tue Feb 12 21:25:26 2013 -0500
     1.3 @@ -937,8 +937,8 @@
     1.4      {
     1.5          {XMFLOAT3(dstrect->x, dstrect->y, 0.0f),                           XMFLOAT2(0.0f, 0.0f)},
     1.6          {XMFLOAT3(dstrect->x, dstrect->y + dstrect->h, 0.0f),              XMFLOAT2(0.0f, 1.0f)},
     1.7 -        {XMFLOAT3(dstrect->x + dstrect->h, dstrect->y, 0.0f),              XMFLOAT2(1.0f, 0.0f)},
     1.8 -        {XMFLOAT3(dstrect->x + dstrect->h, dstrect->y + dstrect->h, 0.0f), XMFLOAT2(1.0f, 1.0f)},
     1.9 +        {XMFLOAT3(dstrect->x + dstrect->w, dstrect->y, 0.0f),              XMFLOAT2(1.0f, 0.0f)},
    1.10 +        {XMFLOAT3(dstrect->x + dstrect->w, dstrect->y + dstrect->h, 0.0f), XMFLOAT2(1.0f, 1.0f)},
    1.11      };
    1.12  
    1.13      if (rendererData->vertexBuffer) {