=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: wined3d: Fix the color keyed P8 alpha ref value.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Feb 4 10:51:17 CST 2015
Module: wine
Branch: master
Commit: 3d49060fdf1906bd756ec7a877fa32d7d6355bfe
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3d49060fdf1906bd756ec7a877fa32d7d6355bfe
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Wed Feb 4 13:45:30 2015 +0100
wined3d: Fix the color keyed P8 alpha ref value.
---
dlls/wined3d/surface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 43dfca0..1753cd0 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -3482,7 +3482,7 @@ static void surface_blt_to_drawable(const struct wined3d_device *device,
* other cases pixels that should be masked away have alpha set to 0. */
if (src_surface->resource.format->id == WINED3DFMT_P8_UINT)
gl_info->gl_ops.gl.p_glAlphaFunc(GL_NOTEQUAL,
- (float)src_surface->container->src_blt_color_key.color_space_low_value / 256.0f);
+ (float)src_surface->container->src_blt_color_key.color_space_low_value / 255.0f);
else
gl_info->gl_ops.gl.p_glAlphaFunc(GL_NOTEQUAL, 0.0f);
checkGLcall("glAlphaFunc");
More information about the wine-cvs
mailing list