wined3d: Fix a unsigned unary minus warning in MSVC.

This commit is contained in:
Stefan Dösinger 2011-05-12 17:47:29 +02:00 committed by Alexandre Julliard
parent 682bae7c2b
commit 31901155ce
1 changed files with 1 additions and 1 deletions

View File

@ -399,7 +399,7 @@ static HRESULT surface_create_dib_section(struct wined3d_surface *surface)
b_info->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
/* TODO: Is there a nicer way to force a specific alignment? (8 byte for ddraw) */
b_info->bmiHeader.biWidth = wined3d_surface_get_pitch(surface) / format->byte_count;
b_info->bmiHeader.biHeight = -surface->resource.height - extraline;
b_info->bmiHeader.biHeight = 0 - surface->resource.height - extraline;
b_info->bmiHeader.biSizeImage = (surface->resource.height + extraline)
* wined3d_surface_get_pitch(surface);
b_info->bmiHeader.biPlanes = 1;