fix some MinGW compiling errors
This commit is contained in:
@@ -449,7 +449,7 @@ namespace detail
|
||||
{
|
||||
(msgbox(modal_window, STR("An uncaptured std::exception during message pumping: ")).icon(msgbox::icon_information)
|
||||
<<STR("\n in form: ") << API::window_caption(modal_window)
|
||||
<<STR("\n exception : ") << e.what()
|
||||
<<STR("\n exception : ") << e.what()
|
||||
).show();
|
||||
|
||||
internal_scope_guard lock;
|
||||
@@ -550,7 +550,7 @@ namespace detail
|
||||
::ScreenToClient(reinterpret_cast<HWND>(wd->root), &point);
|
||||
|
||||
arg.upwards = (pmdec.mouse.button.wheel_delta >= 0);
|
||||
arg.distance = std::abs(pmdec.mouse.button.wheel_delta);
|
||||
arg.distance = static_cast<unsigned>(arg.upwards ? pmdec.mouse.button.wheel_delta : -pmdec.mouse.button.wheel_delta);
|
||||
|
||||
arg.pos.x = static_cast<int>(point.x) - wd->pos_root.x;
|
||||
arg.pos.y = static_cast<int>(point.y) - wd->pos_root.y;
|
||||
@@ -1641,7 +1641,7 @@ namespace detail
|
||||
{
|
||||
if (try_destroy)
|
||||
native_interface::close_window(impl_->menu.window);
|
||||
|
||||
|
||||
impl_->menu.window = impl_->menu.owner = nullptr;
|
||||
impl_->menu.has_keyboard = false;
|
||||
}
|
||||
@@ -1687,7 +1687,7 @@ namespace detail
|
||||
else if (::nana::category::flags::lite_widget == child->other.category)
|
||||
map_through_widgets(child, drawable);
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
bool bedrock::emit(event_code evt_code, core_window_t* wd, const arg_mouse& arg, bool ask_update, thread_context* thrd)
|
||||
|
||||
Reference in New Issue
Block a user