The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
dummy_video.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2004 - 2016 by Philippe Plantier <[email protected]>
3  Part of the Battle for Wesnoth Project http://www.wesnoth.org
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 /** @file */
16 
17 #include "video.hpp"
18 #include "sdl/utils.hpp"
19 
20 static surface dummy_screen_surface(nullptr);
21 
23 {
24  return dummy_screen_surface;
25 }
26 
27 void update_rect(const SDL_Rect&)
28 {
29 }
30 
32 {
33  return nullptr;
34 }
35 
37 {
38  return dummy_screen_surface;
39 }
40 
static surface dummy_screen_surface(nullptr)
-file util.hpp
surface & getSurface()
Definition: dummy_video.cpp:22
surface & get_video_surface()
Definition: dummy_video.cpp:36
void update_rect(const SDL_Rect &)
Definition: dummy_video.cpp:27
surface display_format_alpha(surface)
Definition: dummy_video.cpp:31