Only do extra drawing to de-uglify ellipses for small ellipse sizes.
Bug 91816, patch by Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de>, r=bzbarsky, sr=attinasi, a=shaver git-svn-id: svn://10.0.0.236/trunk@115327 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
ffacd7bc78
commit
624fcf1f96
@ -1109,9 +1109,15 @@ NS_IMETHODIMP nsRenderingContextGTK::FillEllipse(nscoord aX, nscoord aY, nscoord
|
||||
|
||||
UpdateGC();
|
||||
|
||||
::gdk_draw_arc(mSurface->GetDrawable(), mGC, FALSE,
|
||||
x, y, w, h,
|
||||
0, 360 * 64);
|
||||
if (w < 16 || h < 16) {
|
||||
/* Fix for bug 91816 ("bullets are not displayed correctly on certain text zooms")
|
||||
* De-uglify bullets on some X servers:
|
||||
* 1st: Draw... */
|
||||
::gdk_draw_arc(mSurface->GetDrawable(), mGC, FALSE,
|
||||
x, y, w, h,
|
||||
0, 360 * 64);
|
||||
/* ...then fill. */
|
||||
}
|
||||
::gdk_draw_arc(mSurface->GetDrawable(), mGC, TRUE,
|
||||
x, y, w, h,
|
||||
0, 360 * 64);
|
||||
|
||||
@ -1043,18 +1043,20 @@ nsRenderingContextXlib::FillEllipse(nscoord aX, nscoord aY, nscoord aWidth, nsco
|
||||
|
||||
UpdateGC();
|
||||
Drawable drawable; mRenderingSurface->GetDrawable(drawable);
|
||||
/* Fix for bug 91816 ("bullets are not displayed correctly on certain text zooms")
|
||||
* De-uglify bullets on some X servers:
|
||||
* 1st: Draw... */
|
||||
::XDrawArc(mDisplay,
|
||||
drawable,
|
||||
*mGC,
|
||||
x,y,w,h, 0, 360 * 64);
|
||||
/* ...then fill. */
|
||||
if (w < 16 || h < 16) {
|
||||
/* Fix for bug 91816 ("bullets are not displayed correctly on certain text zooms")
|
||||
* De-uglify bullets on some X servers:
|
||||
* 1st: Draw... */
|
||||
::XDrawArc(mDisplay,
|
||||
drawable,
|
||||
*mGC,
|
||||
x, y, w, h, 0, 360 * 64);
|
||||
/* ...then fill. */
|
||||
}
|
||||
::XFillArc(mDisplay,
|
||||
drawable,
|
||||
*mGC,
|
||||
x,y,w,h, 0, 360 * 64);
|
||||
x, y, w, h, 0, 360 * 64);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user