Skip to content

Commit 893ac28

Browse files
committed
Merge pull request #96 from rhendric/blur
Move BLUR_TRANSPARENCY into its own file
2 parents 5f8d41a + c98dc4f commit 893ac28

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

src/MacVim/MMVimController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#import "Miscellaneous.h"
3636
#import "MMCoreTextView.h"
3737
#import "MMWindow.h"
38+
#import "blur.h"
3839

3940

4041
static NSString *MMDefaultToolbarImageName = @"Attention";

src/MacVim/MMWindow.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010

1111
#import "MacVim.h"
12+
#import "blur.h"
1213

1314

1415

src/MacVim/MMWindowController.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010

1111
#import "MacVim.h"
12+
#import "blur.h"
1213

1314

1415

src/MacVim/blur.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#if defined(MAC_OS_X_VERSION_10_5) && (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5)
2+
# define BLUR_TRANSPARENCY
3+
#endif

src/vim.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1752,8 +1752,8 @@ typedef int proftime_T; /* dummy for function prototypes */
17521752
#endif
17531753

17541754
/* Needs to be before option.h, which uses BLUR_TRANSPARENCY */
1755-
#if defined(FEAT_TRANSPARENCY) && defined(MAC_OS_X_VERSION_10_5) && (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_5)
1756-
# define BLUR_TRANSPARENCY
1755+
#ifdef FEAT_TRANSPARENCY
1756+
# include "MacVim/blur.h"
17571757
#endif
17581758

17591759
/* Include option.h before structs.h, because the number of window-local and

0 commit comments

Comments
 (0)