Author: alink
Date: Fri Apr 13 21:30:07 2007
New Revision: 16813
URL: http://svn.gna.org/viewcvs/wesnoth?rev=16813&view=rev
Log:
Add few lines (commented out) which allow to see what it's updated and when.
Basically the screen become darker
except where there is a refresh. This rand() is ugly but I wanted it to be
independant
Modified:
trunk/src/display.cpp
Modified: trunk/src/display.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/display.cpp?rev=16813&r1=16812&r2=16813&view=diff
==============================================================================
--- trunk/src/display.cpp (original)
+++ trunk/src/display.cpp Fri Apr 13 21:30:07 2007
@@ -717,6 +717,16 @@
const surface frameBuffer = get_video_surface();
+ // use this bit of code to see how the view is updated
+ // change the frequency for keeping a good framerate
+ /*if (rand()%100 <= 10) {
+ SDL_Rect r = map_area(); //use frameBuffer to also test the UI
+ const Uint32 color =
SDL_MapRGBA(video().getSurface()->format,0,0,0,255);
+ // adjust the alpha if you want progressive (or not) steps
+ fill_rect_alpha(r, color, 1, frameBuffer);
+ update_rect(r);
+ }*/
+
font::draw_floating_labels(frameBuffer);
events::raise_volatile_draw_event();
cursor::draw(frameBuffer);
_______________________________________________
Wesnoth-commits mailing list
[EMAIL PROTECTED]
https://mail.gna.org/listinfo/wesnoth-commits