Skip to content

Commit

Permalink
Move sdl_utils to sdl/utils.
Browse files Browse the repository at this point in the history
  • Loading branch information
lipk committed Jun 3, 2014
1 parent ac96a2b commit 7ca6ad8
Show file tree
Hide file tree
Showing 31 changed files with 38 additions and 39 deletions.
10 changes: 5 additions & 5 deletions src/CMakeLists.txt
Expand Up @@ -363,6 +363,7 @@ set(wesnoth-sdl_SRC
sdl/rect.cpp
sdl/texture.cpp
sdl/window.cpp
sdl/utils.cpp
)

add_library(wesnoth-sdl
Expand Down Expand Up @@ -948,7 +949,6 @@ set(libwesnoth-game_STAT_SRC
race.cpp
random.cpp
reports.cpp
sdl_utils.cpp
show_dialog.cpp
simple_rng.cpp
sound.cpp
Expand Down Expand Up @@ -1127,7 +1127,7 @@ set(exploder_SRC
tools/exploder_cutter.cpp
tools/exploder_composer.cpp
tools/dummy_video.cpp
sdl_utils.cpp
sdl/utils.cpp
tracer.cpp
loadscreen_empty.cpp
)
Expand All @@ -1143,7 +1143,7 @@ set(cutter_SRC
tools/exploder_utils.cpp
tools/exploder_cutter.cpp
tools/dummy_video.cpp
sdl_utils.cpp
sdl/utils.cpp
tracer.cpp
loadscreen_empty.cpp
)
Expand Down Expand Up @@ -1194,7 +1194,7 @@ set(wesmage_SRC
wesmage/options.cpp
tools/dummy_video.cpp
tools/exploder_utils.cpp
sdl_utils.cpp
sdl/utils.cpp
tracer.cpp
loadscreen_empty.cpp
)
Expand Down Expand Up @@ -1330,7 +1330,7 @@ if(ENABLE_TESTS)
tests/create_images.cpp
tools/dummy_video.cpp
tools/exploder_utils.cpp
sdl_utils.cpp
sdl/utils.cpp
tracer.cpp
loadscreen_empty.cpp
)
Expand Down
6 changes: 3 additions & 3 deletions src/SConscript
Expand Up @@ -151,7 +151,7 @@ libcampaignd_sources = Split("""
libcampaignd = env.Library("campaignd", libcampaignd_sources, OBJPREFIX = "campaignd_")

libwesnoth_sdl_sources = Split("""
sdl_utils.cpp
sdl/utils.cpp
sdl/alpha.cpp
sdl/exception.cpp
sdl/rect.cpp
Expand Down Expand Up @@ -639,7 +639,7 @@ wesmage_sources = Split("""
wesmage/options.cpp
tools/dummy_video.cpp
tools/exploder_utils.cpp
sdl_utils.cpp
sdl/utils.cpp
sdl/alpha.cpp
sdl/window.cpp
tracer.cpp
Expand Down Expand Up @@ -686,7 +686,7 @@ create_images_sources = Split("""
tests/create_images.cpp
tools/dummy_video.cpp
tools/exploder_utils.cpp
sdl_utils.cpp
sdl/utils.cpp
sdl/alpha.cpp
sdl/window.cpp
tracer.cpp
Expand Down
2 changes: 1 addition & 1 deletion src/ai/testing/ca_global_fallback.cpp
Expand Up @@ -27,7 +27,7 @@
#include "../../map_label.hpp"
#include "../../replay.hpp"
#include "../../resources.hpp"
#include "../../sdl_utils.hpp"
#include "../../sdl/utils.hpp"
#include "../../team.hpp"
#include "../../terrain_filter.hpp"
#include "../../tod_manager.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/font.hpp
Expand Up @@ -16,7 +16,7 @@

#include "exceptions.hpp"

#include "sdl_utils.hpp"
#include "sdl/utils.hpp"

#include <SDL_ttf.h>

Expand Down
2 changes: 1 addition & 1 deletion src/gui/auxiliary/canvas.hpp
Expand Up @@ -22,7 +22,7 @@
#define GUI_AUXILIARY_CANVAS_HPP_INCLUDED

#include "formula_callable.hpp"
#include "sdl_utils.hpp"
#include "sdl/utils.hpp"

class config;
class variant;
Expand Down
2 changes: 1 addition & 1 deletion src/gui/dialogs/lobby/lobby_data.hpp
Expand Up @@ -15,7 +15,7 @@
#ifndef INC_LOBBY_DATA
#define INC_LOBBY_DATA

#include "sdl_utils.hpp"
#include "sdl/utils.hpp"

#include <set>
#include <deque>
Expand Down
2 changes: 1 addition & 1 deletion src/gui/widgets/widget.hpp
Expand Up @@ -19,7 +19,7 @@
#include "gui/lib/types/point.hpp"
#include "gui/widgets/event_executor.hpp"

#include "sdl_utils.hpp"
#include "sdl/utils.hpp"

#include <boost/noncopyable.hpp>

Expand Down
2 changes: 1 addition & 1 deletion src/hotkey/hotkey_item.cpp
Expand Up @@ -20,7 +20,7 @@

#include "gettext.hpp"
#include "serialization/unicode.hpp"
#include "sdl_utils.hpp"
#include "sdl/utils.hpp"

#include "boost/foreach.hpp"
#include <boost/algorithm/string/join.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/image.hpp
Expand Up @@ -16,7 +16,7 @@
#define IMAGE_HPP_INCLUDED

#include "map_location.hpp"
#include "sdl_utils.hpp"
#include "sdl/utils.hpp"
#include "terrain_translation.hpp"
#include "game_config.hpp"

Expand Down
2 changes: 1 addition & 1 deletion src/image_modifications.hpp
Expand Up @@ -17,7 +17,7 @@
#ifndef IMAGE_MODIFICATIONS_HPP_INCLUDED
#define IMAGE_MODIFICATIONS_HPP_INCLUDED

#include "sdl_utils.hpp"
#include "sdl/utils.hpp"
#include <queue>

namespace image {
Expand Down
2 changes: 1 addition & 1 deletion src/joystick.hpp
Expand Up @@ -13,7 +13,7 @@
*/

#include <vector>
#include "sdl_utils.hpp"
#include "sdl/utils.hpp"
#include "map.hpp"

#ifndef JOYSTICK_HPP_
Expand Down
2 changes: 1 addition & 1 deletion src/loadscreen.hpp
Expand Up @@ -19,7 +19,7 @@

class CVideo;

#include "sdl_utils.hpp"
#include "sdl/utils.hpp"

class loadscreen {
public:
Expand Down
2 changes: 1 addition & 1 deletion src/minimap.cpp
Expand Up @@ -21,7 +21,7 @@
#include "image.hpp"
#include "log.hpp"
#include "map.hpp"
#include "sdl_utils.hpp"
#include "sdl/utils.hpp"

#include "team.hpp"
#include "wml_exception.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/sdl/rect.cpp
Expand Up @@ -14,7 +14,7 @@

#include "sdl/rect.hpp"
#include "sdl/alpha.hpp"
#include "sdl_utils.hpp"
#include "sdl/utils.hpp"

namespace sdl
{
Expand Down
2 changes: 1 addition & 1 deletion src/sdl/rect.hpp
Expand Up @@ -21,7 +21,7 @@
*/

#include <SDL_version.h>
#include <sdl_utils.hpp>
#include "utils.hpp"

#if SDL_VERSION_ATLEAST(2, 0, 0)
#include <SDL_rect.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sdl/texture.cpp
Expand Up @@ -20,7 +20,7 @@
#include "SDL_image.h"
#include "sdl/exception.hpp"
#include "sdl/rect.hpp"
#include "sdl_utils.hpp"
#include "sdl/utils.hpp"

#include <cassert>

Expand Down
2 changes: 1 addition & 1 deletion src/sdl_utils.cpp → src/sdl/utils.cpp
Expand Up @@ -19,7 +19,7 @@

#include "global.hpp"

#include "sdl_utils.hpp"
#include "sdl/utils.hpp"
#include "sdl/alpha.hpp"
#include "sdl/rect.hpp"

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/sdl/window.hpp
Expand Up @@ -24,7 +24,7 @@

#if SDL_VERSION_ATLEAST(2, 0, 0)

#include "sdl_utils.hpp"
#include "sdl/utils.hpp"

#include <boost/noncopyable.hpp>

Expand Down Expand Up @@ -109,7 +109,7 @@ class twindow : private boost::noncopyable
*
* This is a wrapper for @ref SDL_SetWindowTitle.
*
* @param title  The new title for the window.
* @param title The new title for the window.
*/
void set_title(const std::string& title);

Expand All @@ -121,7 +121,7 @@ class twindow : private boost::noncopyable
* @note The @p icon is a @ref SDL_Surface and not a @ref SDL_Texture, this
* is part of the SDL 2 API.
*
* @param icon  The new icon for the window.
* @param icon The new icon for the window.
*/
void set_icon(const surface& icon);

Expand Down
2 changes: 1 addition & 1 deletion src/storyscreen/part.hpp
Expand Up @@ -24,7 +24,7 @@
#include <utility>
#include <vector>

#include "sdl_utils.hpp"
#include "sdl/utils.hpp"

class config;
class vconfig;
Expand Down
2 changes: 1 addition & 1 deletion src/tests/gui/test_drop_target.cpp
Expand Up @@ -19,7 +19,7 @@
#include <boost/bind.hpp>

#include "sdl/rect.hpp"
#include "sdl_utils.hpp"
#include "sdl/utils.hpp"
#include "widgets/drop_target.hpp"

BOOST_AUTO_TEST_SUITE( test_drop_target )
Expand Down
2 changes: 1 addition & 1 deletion src/tests/test_sdl_utils.hpp
Expand Up @@ -15,7 +15,7 @@
#ifndef TESTS_TEST_SDL_UTILS_HPP_INCLUDED
#define TESTS_TEST_SDL_UTILS_HPP_INCLUDED

#include "sdl_utils.hpp"
#include "sdl/utils.hpp"

#include <boost/function.hpp>

Expand Down
2 changes: 1 addition & 1 deletion src/text.hpp
Expand Up @@ -15,7 +15,7 @@
#ifndef TEXT_HPP_INCLUDED
#define TEXT_HPP_INCLUDED

#include "sdl_utils.hpp"
#include "sdl/utils.hpp"
#include "serialization/unicode.hpp"

#include <boost/noncopyable.hpp>
Expand Down
2 changes: 1 addition & 1 deletion src/tools/dummy_video.cpp
Expand Up @@ -15,7 +15,7 @@
/** @file */

#include "../video.hpp"
#include "../sdl_utils.hpp"
#include "../sdl/utils.hpp"

static surface dummy_screen_surface(NULL);

Expand Down
3 changes: 1 addition & 2 deletions src/tools/exploder_cutter.hpp
Expand Up @@ -15,9 +15,8 @@
#ifndef EXPLODER_CUTTER_HPP_INCLUDED
#define EXPLODER_CUTTER_HPP_INCLUDED

#include "../sdl_utils.hpp"
#include "../sdl/utils.hpp"
#include "../config.hpp"
#include "../sdl_utils.hpp"
#include "exploder_utils.hpp"

class cutter
Expand Down
2 changes: 1 addition & 1 deletion src/tools/exploder_utils.hpp
Expand Up @@ -15,7 +15,7 @@
#ifndef EXPLODER_UTILS_HPP_INCLUDED
#define EXPLODER_UTILS_HPP_INCLUDED

#include "../sdl_utils.hpp"
#include "../sdl/utils.hpp"
#include <string>

struct exploder_failure
Expand Down
2 changes: 1 addition & 1 deletion src/video.cpp
Expand Up @@ -24,7 +24,7 @@
#include "log.hpp"
#include "preferences.hpp"
#include "preferences_display.hpp"
#include "sdl_utils.hpp"
#include "sdl/utils.hpp"
#include "sdl/rect.hpp"
#include "sdl/window.hpp"
#include "video.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/wesmage/filter.hpp
Expand Up @@ -20,7 +20,7 @@
#ifndef WESMAGE_FILTER_HPP_INCLUDED
#define WESMAGE_FILTER_HPP_INCLUDED

#include "sdl_utils.hpp"
#include "sdl/utils.hpp"

#include <string>
#include <vector>
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/scrollpane.hpp
Expand Up @@ -21,7 +21,7 @@
#include <vector>

#include "SDL.h"
#include "../sdl_utils.hpp"
#include "../sdl/utils.hpp"
#include "scrollarea.hpp"

namespace gui {
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/slider.hpp
Expand Up @@ -16,7 +16,7 @@

#include "SDL.h"

#include "../sdl_utils.hpp"
#include "../sdl/utils.hpp"

#include "widget.hpp"

Expand Down
2 changes: 1 addition & 1 deletion src/widgets/widget.hpp
Expand Up @@ -16,7 +16,7 @@
#define WIDGET_HPP_INCLUDED

#include "../events.hpp"
#include "../sdl_utils.hpp"
#include "../sdl/utils.hpp"

class CVideo;

Expand Down

0 comments on commit 7ca6ad8

Please sign in to comment.