Fix inset rectangle corners when sides aren't drawn (bug#51251)
* src/nsterm.m (ns_draw_relief): Make the inner rectangle line up with the outer rectangle's edges where the edges aren't drawn.
This commit is contained in:
parent
5c1a575ef4
commit
91d71b38a3
1 changed files with 6 additions and 1 deletions
|
@ -3512,7 +3512,12 @@ larger if there are taller display elements (e.g., characters
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Calculate the inner rectangle. */
|
/* Calculate the inner rectangle. */
|
||||||
inner = NSInsetRect (outer, hthickness, vthickness);
|
inner = NSMakeRect (NSMinX (outer) + (left_p ? hthickness : 0),
|
||||||
|
NSMinY (outer) + (top_p ? vthickness : 0),
|
||||||
|
NSWidth (outer) - (left_p ? hthickness : 0)
|
||||||
|
- (right_p ? hthickness : 0),
|
||||||
|
NSHeight (outer) - (top_p ? vthickness : 0)
|
||||||
|
- (bottom_p ? vthickness : 0));
|
||||||
|
|
||||||
[(raised_p ? lightCol : darkCol) set];
|
[(raised_p ? lightCol : darkCol) set];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue