+2006-05-18 Jackson Harper <jackson@ximian.com>
+
+ * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
+ up.
+
2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
* Control.cs: Brought back our old UpdateZOrder method as a private
function and switched our calls from UpdateZOrder to the new one.
This fixes the Paint.Net canvas disappearing bug.
+2006-05-18 Jackson Harper <jackson@ximian.com>
+
+ * Theme.cs:
+ * ThemeWin32Classic.cs:
+ * InternalWindowManager.cs: Move the drawing into the theme,
+ expose everything the theme should need from the window manager.
+
2006-05-18 Peter Dennis Bartok <pbartok@novell.com>
* XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value
private void DrawCaptionHelper(Graphics graphics, Color color, Pen pen, int lineWidth, int shift, Rectangle captionRect, CaptionButton button) {
switch(button) {
case CaptionButton.Close: {
- LineCap oldStartCap = pen.StartCap;
- LineCap oldEndCap = pen.EndCap;
- pen.StartCap=LineCap.Triangle;
- pen.EndCap=LineCap.Triangle;
if (lineWidth<2) {
graphics.DrawLine(pen, captionRect.Left+2*lineWidth+1+shift, captionRect.Top+2*lineWidth+shift, captionRect.Right-2*lineWidth+1+shift, captionRect.Bottom-2*lineWidth+shift);
graphics.DrawLine(pen, captionRect.Right-2*lineWidth+1+shift, captionRect.Top+2*lineWidth+shift, captionRect.Left+2*lineWidth+1+shift, captionRect.Bottom-2*lineWidth+shift);
graphics.DrawLine(pen, captionRect.Left+2*lineWidth+shift, captionRect.Top+2*lineWidth+shift, captionRect.Right-2*lineWidth+shift, captionRect.Bottom-2*lineWidth+shift);
graphics.DrawLine(pen, captionRect.Right-2*lineWidth+shift, captionRect.Top+2*lineWidth+shift, captionRect.Left+2*lineWidth+shift, captionRect.Bottom-2*lineWidth+shift);
- pen.StartCap = oldStartCap;
- pen.EndCap = oldEndCap;
return;
}