From 0babfe1c02dd7c4789c3df3126e52ed5362beee8 Mon Sep 17 00:00:00 2001 From: ichizok Date: Mon, 20 Jul 2020 21:52:05 +0900 Subject: [PATCH] Fix build error Define gui_mch_get_scrollbar_xpadding and gui_mch_get_scrollbar_ypadding. --- src/MacVim/gui_macvim.m | 18 ++++++++++++++++++ src/proto/gui_macvim.pro | 4 ++++ 2 files changed, 22 insertions(+) diff --git a/src/MacVim/gui_macvim.m b/src/MacVim/gui_macvim.m index 76c11bd90c..8993eb066a 100644 --- a/src/MacVim/gui_macvim.m +++ b/src/MacVim/gui_macvim.m @@ -1165,6 +1165,24 @@ gui_mch_set_scrollbar_pos( } + int +gui_mch_get_scrollbar_xpadding(void) +{ + // TODO: Calculate the padding for adjust scrollbar position when the + // Window is maximized. + return 0; +} + + + int +gui_mch_get_scrollbar_ypadding(void) +{ + // TODO: Calculate the padding for adjust scrollbar position when the + // Window is maximized. + return 0; +} + + void gui_mch_set_scrollbar_thumb( scrollbar_T *sb, diff --git a/src/proto/gui_macvim.pro b/src/proto/gui_macvim.pro index e8253a09a7..ceeed8d8da 100644 --- a/src/proto/gui_macvim.pro +++ b/src/proto/gui_macvim.pro @@ -160,6 +160,10 @@ gui_mch_set_scrollbar_pos( int y, int w, int h); + int +gui_mch_get_scrollbar_xpadding(void); + int +gui_mch_get_scrollbar_ypadding(void); void gui_mch_set_scrollbar_thumb( scrollbar_T *sb,