summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixMenu.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2018-09-29 09:54:54 (GMT)
committerfvogel <fvogelnew1@free.fr>2018-09-29 09:54:54 (GMT)
commit806e1a97bcd1635ec4b00fb3502c5690d5ce5a61 (patch)
tree94b0b2238082901e8cf09cc4e8821906fa2d778e /unix/tkUnixMenu.c
parentec60445b0cc27430b44a55eb513656838f6a6064 (diff)
downloadtk-806e1a97bcd1635ec4b00fb3502c5690d5ce5a61.zip
tk-806e1a97bcd1635ec4b00fb3502c5690d5ce5a61.tar.gz
tk-806e1a97bcd1635ec4b00fb3502c5690d5ce5a61.tar.bz2
Fix drawing of the menu separator on Linux (was already correct on Windows)
Diffstat (limited to 'unix/tkUnixMenu.c')
-rw-r--r--unix/tkUnixMenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tkUnixMenu.c b/unix/tkUnixMenu.c
index e2bd6ad..63f6ed7 100644
--- a/unix/tkUnixMenu.c
+++ b/unix/tkUnixMenu.c
@@ -638,7 +638,7 @@ DrawMenuSeparator(
points[0].x = x;
points[0].y = y + height/2;
- points[1].x = width - 1;
+ points[1].x = x + width - 1;
points[1].y = points[0].y;
border = Tk_Get3DBorderFromObj(menuPtr->tkwin, menuPtr->borderPtr);
Tk_Draw3DPolygon(menuPtr->tkwin, d, border, points, 2, 1,