[PATCH 2/6] d3drm: Use the correct alpha value in D3DRMCreateColorRGB().

Henri Verbeet hverbeet at codeweavers.com
Thu Nov 10 09:17:38 CST 2016


Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
 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)
-- 
2.1.4




More information about the wine-patches mailing list