d3drm: Use the correct alpha value in D3DRMCreateColorRGB().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2016-11-10 16:17:38 +01:00 committed by Alexandre Julliard
parent 060ea15ae2
commit cf9ee84930
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@
/* Create a RGB color from its components */ /* Create a RGB color from its components */
D3DCOLOR WINAPI D3DRMCreateColorRGB(D3DVALUE red, D3DVALUE green, D3DVALUE blue) D3DCOLOR WINAPI D3DRMCreateColorRGB(D3DVALUE red, D3DVALUE green, D3DVALUE blue)
{ {
return (D3DRMCreateColorRGBA(red, green, blue, 255.0)); return D3DRMCreateColorRGBA(red, green, blue, 1.0f);
} }
/* Create a RGBA color from its components */ /* Create a RGBA color from its components */
D3DCOLOR WINAPI D3DRMCreateColorRGBA(D3DVALUE red, D3DVALUE green, D3DVALUE blue, D3DVALUE alpha) D3DCOLOR WINAPI D3DRMCreateColorRGBA(D3DVALUE red, D3DVALUE green, D3DVALUE blue, D3DVALUE alpha)