Henri Verbeet : d3drm: Use the correct alpha value in D3DRMCreateColorRGB( ).
Alexandre Julliard
julliard at winehq.org
Thu Nov 10 14:37:54 CST 2016
Module: wine
Branch: master
Commit: cf9ee8493084581ba9227ad5e6463ed1506acf7f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cf9ee8493084581ba9227ad5e6463ed1506acf7f
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Nov 10 16:17:38 2016 +0100
d3drm: Use the correct alpha value in D3DRMCreateColorRGB().
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3drm/math.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/d3drm/math.c b/dlls/d3drm/math.c
index 4ccde60..72cb267 100644
--- a/dlls/d3drm/math.c
+++ b/dlls/d3drm/math.c
@@ -27,7 +27,7 @@
/* Create a RGB color from its components */
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 */
D3DCOLOR WINAPI D3DRMCreateColorRGBA(D3DVALUE red, D3DVALUE green, D3DVALUE blue, D3DVALUE alpha)
More information about the wine-cvs
mailing list