=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Limit surface_cpu_blt_colour_fill() to dimensions of render target view.
Alexandre Julliard
julliard at winehq.org
Thu Jan 10 13:27:09 CST 2019
Module: wine
Branch: master
Commit: 8a2583c7d98ea6190dc7db257ed267cfa798ea6d
URL: https://source.winehq.org/git/wine.git/?a=commit;h=8a2583c7d98ea6190dc7db257ed267cfa798ea6d
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Thu Jan 10 15:10:16 2019 +0100
wined3d: Limit surface_cpu_blt_colour_fill() to dimensions of render target view.
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/surface.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 5dbac1c..1b6e7a5 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2970,8 +2970,8 @@ static void surface_cpu_blt_colour_fill(struct wined3d_rendertarget_view *view,
c = wined3d_format_convert_from_float(view->format, colour);
bpp = view->format->byte_count;
- w = box->right - box->left;
- h = box->bottom - box->top;
+ w = min(box->right, view->width) - box->left;
+ h = min(box->bottom, view->height) - box->top;
texture = texture_from_resource(view->resource);
map_binding = texture->resource.map_binding;
More information about the wine-cvs
mailing list