mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 23:36:24 +00:00
Fix some compiler warnings.
This commit is contained in:
parent
46eb8bbb04
commit
f4cc9d9dc8
@ -1029,10 +1029,9 @@ std::string game_display::current_team_name() const
|
|||||||
return std::string();
|
return std::string();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_LIBNOTIFY
|
||||||
void game_display::send_notification(const std::string& owner, const std::string& message)
|
void game_display::send_notification(const std::string& owner, const std::string& message)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_LIBNOTIFY
|
|
||||||
|
|
||||||
// SDL_APPACTIVE, SDL_APPINPUTFOCUS, SDL_APPMOUSEFOCUS
|
// SDL_APPACTIVE, SDL_APPINPUTFOCUS, SDL_APPMOUSEFOCUS
|
||||||
Uint8 app_state = SDL_GetAppState();
|
Uint8 app_state = SDL_GetAppState();
|
||||||
|
|
||||||
@ -1052,8 +1051,10 @@ void game_display::send_notification(const std::string& owner, const std::string
|
|||||||
Glib::ustring wesnoth_icon_info = game_config::path + "images/wesnoth-icon-small.png";
|
Glib::ustring wesnoth_icon_info = game_config::path + "images/wesnoth-icon-small.png";
|
||||||
Notify::Notification notification(owner, message, wesnoth_icon_info);
|
Notify::Notification notification(owner, message, wesnoth_icon_info);
|
||||||
notification.show();
|
notification.show();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
void game_display::send_notification(const std::string&, const std::string&) {}
|
||||||
|
#endif
|
||||||
|
|
||||||
void game_display::set_team(size_t teamindex, bool show_everything)
|
void game_display::set_team(size_t teamindex, bool show_everything)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user