diff --git a/include/fluent_tray.hpp b/include/fluent_tray.hpp index 9595bc1..a76d783 100644 --- a/include/fluent_tray.hpp +++ b/include/fluent_tray.hpp @@ -196,7 +196,7 @@ namespace fluent_tray */ template inline void split_bits(InType input, OutType& upper, OutType& lower) noexcept { - constexpr auto bits = type2bit() ; + static constexpr auto bits = type2bit() ; static const auto lower_mask = util::bit2mask(bits) ; upper = static_cast(reinterpret_cast(input) >> bits) ; @@ -212,7 +212,7 @@ namespace fluent_tray */ template inline void concatenate_bits(InType upper, InType lower, OutType& out) noexcept { - constexpr auto bits = type2bit() ; + static constexpr auto bits = type2bit() ; static const auto lower_mask = util::bit2mask(bits) ; auto out_upper = static_cast(upper) << bits ; @@ -775,8 +775,8 @@ namespace fluent_tray const std::string& icon_path="", LONG menu_x_margin=5, LONG menu_y_margin=5, - LONG menu_x_pad=5, - LONG menu_y_pad=5, + LONG menu_x_pad=10, + LONG menu_y_pad=5, unsigned char opacity=255, bool round_corner=true) { if(!util::string2wstring(app_name, app_name_)) {