Minor compile fix for Windows WDK 7.1 build

e:\p\sdl>hg diff src/render/direct3d/SDL_render_d3d.c

diff -r d169541f5049 src/render/direct3d/SDL_render_d3d.c
— a/src/render/direct3d/SDL_render_d3d.c Thu Jan 19 01:55:51 2012
-0500
+++ b/src/render/direct3d/SDL_render_d3d.c Thu Jan 19 14:10:40 2012
-0800
@@ -574,6 +574,7 @@
D3D_RenderData *data = (D3D_RenderData *) renderer->driverdata;
D3D_TextureData *texturedata;
HRESULT result;

  • D3DMATRIX matrix;

    if (!renderer) return -1;
    D3D_ActivateRenderer(renderer);
    @@ -590,7 +591,6 @@
    }

    /* Prepare an identity world and view matrix */

  • D3DMATRIX matrix;
    matrix.m[0][0] = 1.0f;
    matrix.m[0][1] = 0.0f;
    matrix.m[0][2] = 0.0f;

Fixed, thanks!

Future bug reports are best put into bugzilla so they don’t get lost on the
list:
http://bugzilla.libsdl.org

Cheers!On Thu, Jan 19, 2012 at 5:11 PM, Dimiter ‘malkia’ Stanev wrote:

e:\p\sdl>hg diff src/render/direct3d/SDL_**render_d3d.c

diff -r d169541f5049 src/render/direct3d/SDL_**render_d3d.c
— a/src/render/direct3d/SDL_**render_d3d.c Thu Jan 19 01:55:51
2012 -0500
+++ b/src/render/direct3d/SDL_**render_d3d.c Thu Jan 19 14:10:40
2012 -0800
@@ -574,6 +574,7 @@
D3D_RenderData *data = (D3D_RenderData *) renderer->driverdata;
D3D_TextureData *texturedata;
HRESULT result;

  • D3DMATRIX matrix;
if (!renderer) return -1;
D3D_ActivateRenderer(renderer)**;

@@ -590,7 +591,6 @@
}

/* Prepare an identity world and view matrix */