cleanup of deps against display: added a screen_area() to video.cpp

This commit is contained in:
Yann Dirson 2005-03-15 00:42:44 +00:00
parent b1e3bc179f
commit c8e9141af1
2 changed files with 7 additions and 0 deletions

View file

@ -123,6 +123,12 @@ surface get_video_surface()
return frameBuffer;
}
SDL_Rect screen_area()
{
const SDL_Rect res = {0,0,frameBuffer->w,frameBuffer->h};
return res;
}
void update_rect(size_t x, size_t y, size_t w, size_t h)
{
const SDL_Rect rect = {x,y,w,h};

View file

@ -23,6 +23,7 @@
surface display_format_alpha(surface surf);
surface get_video_surface();
SDL_Rect screen_area();
bool non_interactive();