Simplify d3d_lockrectangle_clear

This commit is contained in:
twinaphex 2015-04-07 00:45:03 +02:00
parent c8767090fe
commit 50348efc6a
4 changed files with 4 additions and 6 deletions

View File

@ -260,8 +260,7 @@ void d3d_clear(LPDIRECT3DDEVICE dev,
#endif
}
void d3d_lockrectangle_clear(void *data,
LPDIRECT3DTEXTURE tex,
void d3d_lockrectangle_clear(LPDIRECT3DTEXTURE tex,
unsigned level, D3DLOCKED_RECT *lock_rect, RECT *rect,
unsigned rectangle_height, unsigned flags)
{

View File

@ -66,8 +66,7 @@ void d3d_clear(LPDIRECT3DDEVICE dev,
unsigned count, const D3DRECT *rects, unsigned flags,
D3DCOLOR color, float z, unsigned stencil);
void d3d_lockrectangle_clear(void *data,
LPDIRECT3DTEXTURE tex,
void d3d_lockrectangle_clear(LPDIRECT3DTEXTURE tex,
unsigned level, D3DLOCKED_RECT *lock_rect, RECT *rect,
unsigned rectangle_height, unsigned flags);

View File

@ -1326,7 +1326,7 @@ static void renderchain_blit_to_texture(void *data,
if (first->last_width != width || first->last_height != height)
{
d3d_lockrectangle_clear(first, first->tex, 0, &d3dlr,
d3d_lockrectangle_clear(first->tex, 0, &d3dlr,
NULL, first->info.tex_h, D3DLOCK_NOSYSLOCK);
}

View File

@ -231,7 +231,7 @@ static void renderchain_blit_to_texture(void *data, const void *frame,
if (d3d->last_width != width || d3d->last_height != height)
{
d3d_lockrectangle_clear(d3d, d3d->tex,
d3d_lockrectangle_clear(d3d->tex,
0, &d3dlr, NULL, d3d->tex_h, D3DLOCK_NOSYSLOCK);
}