diff options
author | Kevin Walzer <kw@codebykevin.com> | 2014-12-28 05:24:14 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2014-12-28 05:24:14 (GMT) |
commit | 6c03075e924a24f235fe3d6156eb7f62299b9f4d (patch) | |
tree | e850e31e968dfe815ebde16bb2e02bc9eb19c0f9 /macosx/tkMacOSXButton.c | |
parent | f28383d3280d92c9ff8c3dbb11c8fb41615470af (diff) | |
download | tk-6c03075e924a24f235fe3d6156eb7f62299b9f4d.zip tk-6c03075e924a24f235fe3d6156eb7f62299b9f4d.tar.gz tk-6c03075e924a24f235fe3d6156eb7f62299b9f4d.tar.bz2 |
Refinement of redraw during window resizing in Cocoa; refinement of button display
Diffstat (limited to 'macosx/tkMacOSXButton.c')
-rw-r--r-- | macosx/tkMacOSXButton.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/tkMacOSXButton.c b/macosx/tkMacOSXButton.c index f0e1cbd..a84ac97 100644 --- a/macosx/tkMacOSXButton.c +++ b/macosx/tkMacOSXButton.c @@ -67,11 +67,11 @@ static NSRect TkMacOSXGetButtonFrame(TkButton *butPtr); return; } - /* Do not draw if the widget is completely outside of its parent, or within 50 pixels of the right border; this prevents buttons from being drawn on peer widgets as scrolling occurs. */ + /* Do not draw if the widget is completely outside of its parent, or within 20 pixels of the right border; this prevents buttons from being drawn on peer widgets as scrolling occurs. */ int parent_width = Tk_Width(Tk_Parent(tkwin)); int widget_width = Tk_Width(tkwin); int x = Tk_X(tkwin); - if (x > parent_width - 50 || x < 0) { + if (x > parent_width - 20 || x < 0) { return; } |