#include "global.hpp"
#include <stdio.h>
#include <iostream>
#include <vector>
#include "events.hpp"
#include "font.hpp"
#include "image.hpp"
#include "log.hpp"
#include "preferences_display.hpp"
#include "video.hpp"
Go to the source code of this file.
Defines | |
#define | LOG_DP LOG_STREAM(info, display) |
#define | ERR_DP LOG_STREAM(err, display) |
#define | TEST_VIDEO_ON 0 |
Functions | |
static unsigned int | get_flags (unsigned int flags) |
static bool | rect_contains (const SDL_Rect &a, const SDL_Rect &b) |
static void | clear_updates () |
bool | non_interactive () |
surface | display_format_alpha (surface surf) |
surface | get_video_surface () |
SDL_Rect | screen_area () |
void | update_rect (size_t x, size_t y, size_t w, size_t h) |
void | update_rect (const SDL_Rect &rect_value) |
void | update_whole_screen () |
Variables | |
bool | fullScreen = false |
int | disallow_resize = 0 |
std::vector< SDL_Rect > | update_rects |
bool | update_all = false |
surface | frameBuffer = NULL |
Definition in file video.cpp.
static void clear_updates | ( | ) | [static] |
Definition at line 122 of file video.cpp.
References update_all, and update_rects.
Referenced by CVideo::flip().
static unsigned int get_flags | ( | unsigned int | flags | ) | [static] |
Definition at line 100 of file video.cpp.
Referenced by CVideo::modePossible(), and CVideo::setMode().
surface get_video_surface | ( | ) |
bool non_interactive | ( | ) |
Definition at line 134 of file video.cpp.
Referenced by playsingle_controller::check_time_over(), check_victory(), display::display(), playsingle_controller::play_turn(), preferences::theme(), and preferences::turbo().
static bool rect_contains | ( | const SDL_Rect & | a, | |
const SDL_Rect & | b | |||
) | [static] |
SDL_Rect screen_area | ( | ) |
Definition at line 154 of file video.cpp.
References frameBuffer.
Referenced by gui::button::calculate_size(), draw_background(), gui::textbox::draw_contents(), gui::menu::draw_row(), gui::dialog_frame::draw_title(), gui::menu::get_item_rect_internal(), gui::dialog_frame::layout(), gui2::load_settings(), map_editor::new_map_dialog(), map_editor::preferences_dialog(), map_editor::resize_dialog(), CVideo::set_help_string(), about::show_about(), show_intro_part_helper(), show_tooltip(), the_end(), and default_map_generator::user_config().
void update_rect | ( | size_t | x, | |
size_t | y, | |||
size_t | w, | |||
size_t | h | |||
) |
Definition at line 160 of file video.cpp.
References rect, and update_rect().
Referenced by gui::widget::bg_restore(), gui2::twindow::draw(), gui::widget::draw(), mp::gamebrowser::draw(), gui::menu::draw(), map_editor::brush_bar::draw(), map_editor::terrain_palette::draw(), cursor::draw(), draw_background(), gui::dialog_frame::draw_border(), draw_centered_on_background(), gui::textbox::draw_contents(), gui::scrollbar::draw_contents(), gui::progress_bar::draw_contents(), help::help_text_area::draw_contents(), gui::button::draw_contents(), display::draw_init(), draw_label(), draw_panel(), display::drawing_buffer_commit(), fade_logo(), display::flip(), display::invalidate_all(), map_editor::new_map_dialog(), map_editor::preferences_dialog(), display::refresh_report(), map_editor::resize_dialog(), surface_restorer::restore(), display::scroll(), gui2::twindow::show(), about::show_about(), show_intro_part(), show_intro_part_helper(), the_end(), cursor::undraw(), map_editor::update_l_button_palette(), update_rect(), and default_map_generator::user_config().
void update_whole_screen | ( | ) |
Definition at line 229 of file video.cpp.
References update_all.
Referenced by mp::ui::draw_contents(), events::pump(), about::show_about(), show_intro_part(), gui::show_title(), and the_end().
int disallow_resize = 0 [static] |
Definition at line 80 of file video.cpp.
Referenced by resize_monitor::process(), resize_lock::resize_lock(), and resize_lock::~resize_lock().
surface frameBuffer = NULL [static] |
Definition at line 130 of file video.cpp.
Referenced by display_format_alpha(), gui2::twindow::flip(), CVideo::flip(), display::flip(), get_video_surface(), CVideo::getBitsPerPixel(), CVideo::getBlueMask(), CVideo::getBytesPerPixel(), CVideo::getGreenMask(), CVideo::getRedMask(), CVideo::getSurface(), CVideo::getx(), CVideo::gety(), CVideo::lock(), CVideo::make_fake(), CVideo::mustLock(), screen_area(), CVideo::setMode(), and CVideo::unlock().
bool fullScreen = false [static] |
Definition at line 79 of file video.cpp.
Referenced by CVideo::isFullScreen(), and CVideo::setMode().
bool update_all = false [static] |
Definition at line 115 of file video.cpp.
Referenced by clear_updates(), CVideo::flip(), update_rect(), and update_whole_screen().
std::vector<SDL_Rect> update_rects [static] |
Definition at line 114 of file video.cpp.
Referenced by clear_updates(), CVideo::flip(), CVideo::setMode(), and update_rect().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |