WinRT: made SDL_RenderClear display the correct color via Direct3D 11.1
authorDavid Ludwig <dludwig@pobox.com>
Sun, 10 Feb 2013 17:35:38 -0500
changeset 842361f9a3eb6bc8
parent 8422 73abaf9e1fae
child 8424 3cf9501008f1
WinRT: made SDL_RenderClear display the correct color via Direct3D 11.1
src/render/direct3d11/SDL_render_d3d11.cpp
     1.1 --- a/src/render/direct3d11/SDL_render_d3d11.cpp	Sun Feb 10 10:39:24 2013 -0500
     1.2 +++ b/src/render/direct3d11/SDL_render_d3d11.cpp	Sun Feb 10 17:35:38 2013 -0500
     1.3 @@ -879,10 +879,10 @@
     1.4  {
     1.5      D3D11_RenderData *data = (D3D11_RenderData *) renderer->driverdata;
     1.6      const float colorRGBA[] = {
     1.7 -        renderer->r,
     1.8 -        renderer->g,
     1.9 -        renderer->b,
    1.10 -        renderer->a
    1.11 +        (renderer->r / 255.0f),
    1.12 +        (renderer->g / 255.0f),
    1.13 +        (renderer->b / 255.0f),
    1.14 +        (renderer->a / 255.0f)
    1.15      };
    1.16      data->d3dContext->ClearRenderTargetView(
    1.17          data->renderTargetView.Get(),