Skip to content

Commit

Permalink
Cleaned up text rendering-related includes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Mar 11, 2018
1 parent 6bda3a9 commit 4ba33d4
Show file tree
Hide file tree
Showing 14 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/display.cpp
Expand Up @@ -21,7 +21,7 @@
#include "cursor.hpp"
#include "display.hpp"
#include "fake_unit_manager.hpp"
#include "font/standard_colors.hpp"
#include "font/sdl_ttf.hpp"
#include "font/text.hpp"
#include "preferences/game.hpp"
#include "gettext.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/display.hpp
Expand Up @@ -50,7 +50,6 @@ namespace wb {

#include "animated.hpp"
#include "display_context.hpp"
#include "font/sdl_ttf.hpp"
#include "font/standard_colors.hpp"
#include "image.hpp" //only needed for enums (!)
#include "key.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/editor/editor_display.cpp
Expand Up @@ -15,6 +15,7 @@

#include "editor/controller/editor_controller.hpp"
#include "editor/editor_display.hpp"
#include "lexical_cast.hpp"
#include "reports.hpp"
#include "team.hpp"
#include "terrain/builder.hpp"
Expand Down
4 changes: 0 additions & 4 deletions src/editor/palette/tristate_button.cpp
Expand Up @@ -16,13 +16,9 @@

#include "editor/palette/tristate_button.hpp"

#include "font/constants.hpp"
#include "font/sdl_ttf.hpp"
#include "font/standard_colors.hpp"
#include "game_config.hpp"
#include "image.hpp"
#include "log.hpp"
#include "font/marked-up_text.hpp"
#include "sdl/rect.hpp"
#include "sound.hpp"
#include "video.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/floating_label.cpp
Expand Up @@ -15,8 +15,6 @@
#include "floating_label.hpp"

#include "display.hpp"
#include "font/sdl_ttf.hpp"
#include "font/standard_colors.hpp"
#include "font/text.hpp"
#include "log.hpp"
#include "video.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/preferences/game.cpp
Expand Up @@ -18,6 +18,7 @@
#include "game_display.hpp"
#include "preferences/game.hpp"
#include "gettext.hpp"
#include "lexical_cast.hpp"
#include "log.hpp"
#include "map/map.hpp"
#include "serialization/string_utils.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/replay.cpp
Expand Up @@ -27,6 +27,7 @@
#include "game_display.hpp"
#include "preferences/game.hpp"
#include "game_data.hpp"
#include "lexical_cast.hpp"
#include "log.hpp"
#include "map/label.hpp"
#include "map/location.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/reports.cpp
Expand Up @@ -21,7 +21,6 @@
#include "gettext.hpp"
#include "language.hpp"
#include "map/map.hpp"
#include "font/marked-up_text.hpp"
#include "mouse_events.hpp"
#include "reports.hpp"
#include "color.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/team.cpp
Expand Up @@ -21,9 +21,9 @@

#include "ai/manager.hpp"
#include "color.hpp"
#include "font/text_formatting.hpp"
#include "game_data.hpp"
#include "game_events/pump.hpp"
#include "lexical_cast.hpp"
#include "map/map.hpp"
#include "play_controller.hpp"
#include "preferences/game.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/theme.cpp
Expand Up @@ -16,7 +16,6 @@

#include "theme.hpp"

#include "font/sdl_ttf.hpp"
#include "gettext.hpp"
#include "hotkey/hotkey_command.hpp"
#include "hotkey/hotkey_item.hpp"
Expand Down
2 changes: 0 additions & 2 deletions src/tooltips.cpp
Expand Up @@ -15,11 +15,9 @@
#include "tooltips.hpp"

#include "floating_label.hpp"
#include "font/sdl_ttf.hpp"
#include "font/standard_colors.hpp"
#include "game_display.hpp"
#include "help/help.hpp"
#include "font/marked-up_text.hpp"
#include "video.hpp"

#include <SDL_rect.h> // Travis doesn't like this, although it works on my machine -> '#include <SDL_sound.h>
Expand Down
1 change: 1 addition & 0 deletions src/video.cpp
Expand Up @@ -16,6 +16,7 @@

#include "display.hpp"
#include "floating_label.hpp"
#include "font/sdl_ttf.hpp"
#include "image.hpp"
#include "log.hpp"
#include "preferences/general.hpp"
Expand Down
1 change: 0 additions & 1 deletion src/widgets/button.cpp
Expand Up @@ -18,7 +18,6 @@

#include "filesystem.hpp"
#include "font/sdl_ttf.hpp"
#include "font/text.hpp"
#include "game_config.hpp"
#include "game_errors.hpp"
#include "image.hpp"
Expand Down
3 changes: 2 additions & 1 deletion src/widgets/menu_style.cpp
Expand Up @@ -17,8 +17,9 @@

#include "widgets/menu.hpp"

#include "font/sdl_ttf.hpp"
#include "font/constants.hpp"
#include "image.hpp"
#include "lexical_cast.hpp"
#include "sdl/utils.hpp"
#include "video.hpp"

Expand Down

0 comments on commit 4ba33d4

Please sign in to comment.