Skip to content

Commit

Permalink
patch 8.1.2318: MS-Windows GUI: main background shows in toolbar
Browse files Browse the repository at this point in the history
Problem:    MS-Windows GUI: main background shows in toolbar.
Solution:   Remove transparency from the toolbar. (Simon Sadler)
  • Loading branch information
brammool committed Nov 17, 2019
1 parent 37ff4cf commit 5f76334
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui_w32.c
Expand Up @@ -7859,6 +7859,12 @@ initialise_toolbar(void)
TOOLBAR_BUTTON_HEIGHT,
sizeof(TBBUTTON)
);

// Remove transparency from the toolbar to prevent the main window
// background colour showing through
SendMessage(s_toolbarhwnd, TB_SETSTYLE, 0,
SendMessage(s_toolbarhwnd, TB_GETSTYLE, 0, 0) & ~TBSTYLE_TRANSPARENT);

s_toolbar_wndproc = SubclassWindow(s_toolbarhwnd, toolbar_wndproc);

gui_mch_show_toolbar(vim_strchr(p_go, GO_TOOLBAR) != NULL);
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -741,6 +741,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2318,
/**/
2317,
/**/
Expand Down

0 comments on commit 5f76334

Please sign in to comment.