~ubuntu-branches/debian/jessie/scummvm/jessie

« back to all changes in this revision

Viewing changes to gui/about.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2014-08-10 00:50:36 UTC
  • mfrom: (1.2.22)
  • Revision ID: package-import@ubuntu.com-20140810005036-wls6i0dsxqfxu70g
Tags: 1.7.0+dfsg-1
* New upstream release [July 2014].
  - remove old/obsolete patches.
  + added new "drop1test.patch" to disable problematic test.
  + build with "--disable-eventrecorder" to avoid FTBFS in tests.
  + added "libjpeg-dev" and "libfaad-dev" to Build-Depends.
* Install all arch-independent files (themes, game data, etc.).
* Build-time re-compression of "classic" theme.
* Added "debian/gbp.conf".
* Standards-Version to 3.9.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 * You should have received a copy of the GNU General Public License
18
18
 * along with this program; if not, write to the Free Software
19
19
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
20
 *
20
21
 */
21
22
 
22
23
#include "engines/metaengine.h"
46
47
//   0 - 2       -- set a custom color:
47
48
//                  0 normal text
48
49
//                  1 highlighted text
49
 
//                  2 disabled text     
 
50
//                  2 disabled text
50
51
// TODO: Maybe add a tab/indent feature; that is, make it possible to specify
51
52
// an amount by which that line shall be indented (the indent of course would have
52
53
// to be considered while performing any word wrapping, too).
56
57
 
57
58
static const char *copyright_text[] = {
58
59
"",
59
 
"C0""Copyright (C) 2001-2013 The ScummVM project",
 
60
"C0""Copyright (C) 2001-2014 The ScummVM Team",
60
61
"C0""http://www.scummvm.org",
61
62
"",
62
63
"C0""ScummVM is the legal property of its developers, whose names are too numerous to list here. Please refer to the COPYRIGHT file distributed with this binary.",
139
140
        } else {
140
141
                Common::String format(str, 2);
141
142
                str += 2;
142
 
                
 
143
 
143
144
                static Common::String asciiStr;
144
145
                if (format[0] == 'A') {
145
146
                        bool useAscii = false;
180
181
}
181
182
 
182
183
void AboutDialog::drawDialog() {
183
 
//      g_gui.theme()->setDrawArea(Common::Rect(_x, _y, _x+_w, _y+_h));
184
184
        Dialog::drawDialog();
185
185
 
 
186
        setTextDrawableArea(Common::Rect(_x, _y, _x + _w, _y + _h));
 
187
 
186
188
        // Draw text
187
189
        // TODO: Add a "fade" effect for the top/bottom text lines
188
190
        // TODO: Maybe prerender all of the text into another surface,
239
241
                        while (*str && *str == ' ')
240
242
                                str++;
241
243
 
242
 
                if (*str && y > _y && y + g_gui.theme()->getFontHeight() < _y + _h)
243
 
                        g_gui.theme()->drawText(Common::Rect(_x + _xOff, y, _x + _w - _xOff, y + g_gui.theme()->getFontHeight()), str, state, align, ThemeEngine::kTextInversionNone, 0, false);
 
244
                if (*str) 
 
245
                        g_gui.theme()->drawText(Common::Rect(_x + _xOff, y, _x + _w - _xOff, y + g_gui.theme()->getFontHeight()), str, state, align, ThemeEngine::kTextInversionNone, 0, false, ThemeEngine::kFontStyleBold, ThemeEngine::kFontColorNormal, true, _textDrawableArea);
244
246
                y += _lineHeight;
245
247
        }
246
248
}