Navigation Menu

Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 5, 2011
1 parent 4735c24 commit 8a5547a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/render/direct3d/SDL_d3drender.c
Expand Up @@ -536,15 +536,15 @@ D3D_UpdateTexture(SDL_Renderer * renderer, SDL_Texture * texture,
if (texture->access == SDL_TEXTUREACCESS_STREAMING &&
rect->x == 0 && rect->y == 0 &&
rect->w == texture->w && rect->h == texture->h) {
result = IDirect3DTexture9_LockRect(data->texture, 0, &locked, NULL, D3DLOCK_DISCARD);
result = IDirect3DTexture9_LockRect(data->texture, 0, &locked, NULL, D3DLOCK_DISCARD);
} else
#endif
{
d3drect.left = rect->x;
d3drect.right = rect->x + rect->w;
d3drect.top = rect->y;
d3drect.bottom = rect->y + rect->h;
result = IDirect3DTexture9_LockRect(data->texture, 0, &locked, &d3drect, 0);
result = IDirect3DTexture9_LockRect(data->texture, 0, &locked, &d3drect, 0);
}

if (FAILED(result)) {
Expand Down

0 comments on commit 8a5547a

Please sign in to comment.