cleanup of deps against display: added a screen_area() to video.cpp
This commit is contained in:
parent
b1e3bc179f
commit
c8e9141af1
2 changed files with 7 additions and 0 deletions
|
@ -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};
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
surface display_format_alpha(surface surf);
|
||||
surface get_video_surface();
|
||||
SDL_Rect screen_area();
|
||||
|
||||
bool non_interactive();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue