Author: shadowmaster
Date: Sat May 24 03:00:49 2008
New Revision: 26811
URL: http://svn.gna.org/viewcvs/wesnoth?rev=26811&view=rev
Log:
* Fix an important performance issue introduced with titlescreen
* blurring frames - note please that this is *not* the definitive
* solution...
Modified:
trunk/src/about.cpp
Modified: trunk/src/about.cpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/about.cpp?rev=26811&r1=26810&r2=26811&view=diff
==============================================================================
--- trunk/src/about.cpp (original)
+++ trunk/src/about.cpp Sat May 24 03:00:49 2008
@@ -34,14 +34,15 @@
//! to the game will be presented to the user.
namespace about
{
+ const gui::dialog_frame::style scroll_area_frame_style("translucent54",
0);
static config about_list = config();
static std::map<std::string , std::string> images;
static std::string images_default;
-// Given a vector of strings, and a config representing an [about] section,
-// add all the credits lines from the about section to the list of strings.
-static void add_lines(std::vector<std::string> &res, config const &c) {
+ // Given a vector of strings, and a config representing an [about]
section,
+ // add all the credits lines from the about section to the list of
strings.
+ static void add_lines(std::vector<std::string> &res, config const &c) {
std::string title=c["title"];
if(title.size()) {
title = N_("+" + title);
@@ -249,7 +250,7 @@
map_rect.w * 13 / 16,
map_rect.h - top_margin - bottom_margin
};
- gui::dialog_frame f(disp.video(), "",
gui::dialog_frame::titlescreen_style, false);
+ gui::dialog_frame f(disp.video(), "",
about::scroll_area_frame_style, false);
f.layout(frame_area);
f.draw_background();
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits