[Wine-devel] [2/2] winex11.drv: Improve drawing little rectangles (eterbug #1971).
Alexander Morozov
=?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Чт Сен 25 17:31:15 MSD 2008
----------- следующая часть -----------
From bbecf00ea7a38438ad85d4299571baffad938c8a Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Thu, 25 Sep 2008 17:20:17 +0400
Subject: [PATCH] winex11.drv: Improve drawing little rectangles (eterbug #1971).
---
dlls/winex11.drv/graphics.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/winex11.drv/graphics.c b/dlls/winex11.drv/graphics.c
index 9503177..fa3d567 100644
--- a/dlls/winex11.drv/graphics.c
+++ b/dlls/winex11.drv/graphics.c
@@ -945,12 +945,12 @@ X11DRV_RoundRect( X11DRV_PDEVICE *physDev, INT left, INT top, INT right,
else if (ell_height > (rc.bottom-rc.top) ){
XDrawArc( gdi_display, physDev->drawable, physDev->gc,
physDev->dc_rect.left + rc.left, physDev->dc_rect.top + rc.top,
- ell_width - 1 , rc.bottom - rc.top - 1, 90 * 64 , 180 * 64 );
+ ell_width, rc.bottom - rc.top - 1, 90 * 64 , 180 * 64 );
XDrawArc( gdi_display, physDev->drawable, physDev->gc,
- physDev->dc_rect.left + rc.right - ell_width,
+ physDev->dc_rect.left + rc.right - ell_width - 1,
physDev->dc_rect.top + rc.top,
- ell_width - 1 , rc.bottom - rc.top - 1, 270 * 64 , 180 * 64 );
- }else{
+ ell_width, rc.bottom - rc.top - 1, 270 * 64 , 180 * 64 );
+ } else if (ell_height > 2 || ell_width > 2) {
XDrawArc( gdi_display, physDev->drawable, physDev->gc,
physDev->dc_rect.left + rc.left, physDev->dc_rect.top + rc.top,
ell_width - 1, ell_height - 1, 90 * 64, 90 * 64 );
--
1.5.6.5.GIT
Подробная информация о списке рассылки Wine-devel