wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src video.cpp video.hpp


From: Yann Dirson
Subject: [Wesnoth-cvs-commits] wesnoth/src video.cpp video.hpp
Date: Mon, 14 Mar 2005 19:42:45 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Yann Dirson <address@hidden>    05/03/15 00:42:45

Modified files:
        src            : video.cpp video.hpp 

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

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/video.cpp.diff?tr1=1.56&tr2=1.57&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/video.hpp.diff?tr1=1.28&tr2=1.29&r1=text&r2=text

Patches:
Index: wesnoth/src/video.cpp
diff -u wesnoth/src/video.cpp:1.56 wesnoth/src/video.cpp:1.57
--- wesnoth/src/video.cpp:1.56  Wed Mar  9 22:21:04 2005
+++ wesnoth/src/video.cpp       Tue Mar 15 00:42:44 2005
@@ -1,4 +1,4 @@
-/* $Id: video.cpp,v 1.56 2005/03/09 22:21:04 ydirson Exp $ */
+/* $Id: video.cpp,v 1.57 2005/03/15 00:42:44 ydirson Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -123,6 +123,12 @@
        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};
Index: wesnoth/src/video.hpp
diff -u wesnoth/src/video.hpp:1.28 wesnoth/src/video.hpp:1.29
--- wesnoth/src/video.hpp:1.28  Wed Oct 27 20:42:36 2004
+++ wesnoth/src/video.hpp       Tue Mar 15 00:42:44 2005
@@ -1,4 +1,4 @@
-/* $Id: video.hpp,v 1.28 2004/10/27 20:42:36 gruikya Exp $ */
+/* $Id: video.hpp,v 1.29 2005/03/15 00:42:44 ydirson Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -23,6 +23,7 @@
 
 surface display_format_alpha(surface surf);
 surface get_video_surface();
+SDL_Rect screen_area();
 
 bool non_interactive();
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]