comparison src/video/win32/SDL_d3drender.c @ 2786:6bacfecbf27e

indent
author Sam Lantinga <slouken@libsdl.org>
date Tue, 25 Nov 2008 02:21:53 +0000
parents e33ad7ebb7eb
children 27cb878a278e
comparison
equal deleted inserted replaced
2785:fa1095d42a5b 2786:6bacfecbf27e
25 25
26 #include "SDL_win32video.h" 26 #include "SDL_win32video.h"
27 27
28 /* Direct3D renderer implementation */ 28 /* Direct3D renderer implementation */
29 29
30 #if 1 /* This takes more memory but you won't lose your texture data */ 30 #if 1 /* This takes more memory but you won't lose your texture data */
31 #define D3DPOOL_SDL D3DPOOL_MANAGED 31 #define D3DPOOL_SDL D3DPOOL_MANAGED
32 #define SDL_MEMORY_POOL_MANAGED 32 #define SDL_MEMORY_POOL_MANAGED
33 #else 33 #else
34 #define D3DPOOL_SDL D3DPOOL_DEFAULT 34 #define D3DPOOL_SDL D3DPOOL_DEFAULT
35 #define SDL_MEMORY_POOL_DEFAULT 35 #define SDL_MEMORY_POOL_DEFAULT
631 d3drect.left = rect->x; 631 d3drect.left = rect->x;
632 d3drect.right = rect->x + rect->w; 632 d3drect.right = rect->x + rect->w;
633 d3drect.top = rect->y; 633 d3drect.top = rect->y;
634 d3drect.bottom = rect->y + rect->h; 634 d3drect.bottom = rect->y + rect->h;
635 635
636 result = IDirect3DTexture9_LockRect(data->texture, 0, &locked, &d3drect, 0); 636 result =
637 IDirect3DTexture9_LockRect(data->texture, 0, &locked, &d3drect, 0);
637 if (FAILED(result)) { 638 if (FAILED(result)) {
638 D3D_SetError("LockRect()", result); 639 D3D_SetError("LockRect()", result);
639 return -1; 640 return -1;
640 } 641 }
641 642