Skip to content

Commit 5f76334

Browse files
committed
patch 8.1.2318: MS-Windows GUI: main background shows in toolbar
Problem: MS-Windows GUI: main background shows in toolbar. Solution: Remove transparency from the toolbar. (Simon Sadler)
1 parent 37ff4cf commit 5f76334

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

src/gui_w32.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7859,6 +7859,12 @@ initialise_toolbar(void)
78597859
TOOLBAR_BUTTON_HEIGHT,
78607860
sizeof(TBBUTTON)
78617861
);
7862+
7863+
// Remove transparency from the toolbar to prevent the main window
7864+
// background colour showing through
7865+
SendMessage(s_toolbarhwnd, TB_SETSTYLE, 0,
7866+
SendMessage(s_toolbarhwnd, TB_GETSTYLE, 0, 0) & ~TBSTYLE_TRANSPARENT);
7867+
78627868
s_toolbar_wndproc = SubclassWindow(s_toolbarhwnd, toolbar_wndproc);
78637869

78647870
gui_mch_show_toolbar(vim_strchr(p_go, GO_TOOLBAR) != NULL);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
2318,
744746
/**/
745747
2317,
746748
/**/

0 commit comments

Comments
 (0)