[Wine-devel] [1/2] winex11.drv: Fix rectangle overflow if ell_height is sufficiently big (eterbug #1971).
Alexander Morozov
=?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Чт Сен 25 17:30:40 MSD 2008
----------- следующая часть -----------
From 9fbe81f85ca81fb6f7d0cdb060df74731c808a8c Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Thu, 25 Sep 2008 17:08:56 +0400
Subject: [PATCH] winex11.drv: Fix rectangle overflow if ell_height is sufficiently big (eterbug #1971).
---
dlls/winex11.drv/graphics.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/dlls/winex11.drv/graphics.c b/dlls/winex11.drv/graphics.c
index 6b6055f..9503177 100644
--- a/dlls/winex11.drv/graphics.c
+++ b/dlls/winex11.drv/graphics.c
@@ -903,12 +903,7 @@ X11DRV_RoundRect( X11DRV_PDEVICE *physDev, INT left, INT top, INT right,
physDev->dc_rect.left + rc.left + (ell_width + 1) / 2,
physDev->dc_rect.top + rc.top + 1,
rc.right - rc.left - ell_width - 1,
- (ell_height + 1) / 2 - 1);
- XFillRectangle( gdi_display, physDev->drawable, physDev->gc,
- physDev->dc_rect.left + rc.left + (ell_width + 1) / 2,
- physDev->dc_rect.top + rc.bottom - (ell_height) / 2 - 1,
- rc.right - rc.left - ell_width - 1,
- (ell_height) / 2 );
+ rc.bottom - rc.top - 2);
}
if (ell_height < rc.bottom - rc.top)
{
--
1.5.6.5.GIT
Подробная информация о списке рассылки Wine-devel