Commit graph

41 commits

Author SHA1 Message Date
Martin Hrubý (hrubymar10)
674fda85b7 Migrate links to https if available - Fwd c18537edc0
(cherry-picked from commit bc4d22dc72)
2018-10-07 03:23:36 +00:00
Gregory A Lundberg
b5f76eff79
Bump copyright to 2018 2018-01-19 00:02:20 -06:00
Charles Dang
9dd497db4a Cleaned up the mess of CVideo references passed around the game initialization process
Essentially, we had CVideo arguments being passed down this chain:
- game_launcher
- free-standing MP initialization functions
- campaign_controller
- playsingle_controller/playmp_controller
- play_controller
- game_display
- display

And likewise down through
- game_launcher
- editor_controller
- editor_display
- display

With only a minimal number of actual calls along the way. :| There were maybe... two remaining?

This removes the CVideo arguments and class members from both chains (except of course, game_launcher.
That's where the "real" CVideo object lives).

The display class now initializes its CVideo reference from the singleton, which is also used in the
very few other places it's needed. I also replaced a check for a null video ptr in show_tooltip()
with a faked() check (see src/tooltips.cpp). That seems to make more sense, since CVideo is never
null now.
2017-11-21 02:30:19 +11:00
Charles Dang
2101353d36 Convert include guards to the shorter #pragma once
Turns out I mistook @celticminstrel's opinion that we should use include guards over pragma (737916e).
Since all major compilers support `#pragma once`, there's no reason not to use it.

For future mergability reasons, this excludes src/spirit_po and src/xBRZ. It also excludes src/boost-patched.
2017-05-09 19:41:37 +11:00
Celtic Minstrel
b4dc11ce36 Belated 2017 copyright update 2017-03-19 10:05:38 -04:00
Charles Dang
b97a20b059 Split SDL_Surface wrapper class and related helper struts into their own file
This (should) allow sdl/utils.hpp to be modified without a huge rebuild, since a number
of widely used headers included that file simply for the surface class type.
2016-12-10 22:36:31 +11:00
Celtic Minstrel
3ac7f8d970 NULL -> nullptr
A few cases of NULL were missed, since changing them led to errors
(Mainly instances where it was passed to a boost::function)
2016-03-31 00:42:38 -04:00
Chris Beck
ba51524f6e update copyright to year 2016
using this shell script:

find src -type f -print0 | xargs -0 sed -i "s|Copyright (C) \([[:digit:]]*\)\([ ]*\)-\([ ]*\)2015|Copyright (C) \1\2-\32016|g"
2016-01-02 23:59:31 -05:00
Ignacio R. Morelle
57ae45387a New Year copyright update 2015-01-01 19:07:35 -03:00
Fabian Müller
7525c2ed4c Allow removing labels by handle. 2014-12-13 07:31:46 +01:00
Fabian Müller
8e118e4a40 Add support for setting the drawing content of tooltips. 2014-12-13 01:07:38 +01:00
Chris Beck
10d78ba4a5 fixup includes 2014-06-19 11:36:45 -04:00
Ignacio R. Morelle
a4f47a63c7 New Year copyright update 2014-01-01 02:08:52 -03:00
Eric S. Raymond
043c4f9fd3 Remove $Id$ cookies. 2013-03-26 21:41:37 -04:00
Mark de Wever
43b71f2ff0 New year copyright update. 2013-01-01 09:22:03 +00:00
Mark de Wever
49eb8c10b1 Ignore Pango markup in map descriptions.
Fixes bug #19210, patch provided by Shadow master.
2012-03-18 14:57:32 +00:00
Ignacio R. Morelle
6ca69b2df5 New year copyright update 2012-01-07 02:35:17 +00:00
Mark de Wever
ecbabea838 New year copyright update. 2011-01-01 15:57:50 +00:00
Guillaume Melquiond
eeb047de55 Fixed file headers so that they match the content of the COPYING file. 2010-09-01 21:12:38 +00:00
Mark de Wever
c5c43815ac Strip trailing whitespace. 2010-06-12 16:03:58 +00:00
Ali El Gariani
992b6f0e3c Allow to associate a help page to each tooltip (open when clicking). 2010-06-04 18:59:18 +00:00
Ali El Gariani
8c731f62e4 Remove now unsused color parameter in tooltip
(using pango markup is better)
2010-06-02 22:01:35 +00:00
Mark de Wever
92f5f92ce5 New year copyright update. 2010-01-01 13:16:49 +00:00
Guillaume Melquiond
522568e59c Fixed dependencies. 2009-07-19 10:06:07 +00:00
Tomasz Śniatowski
85968f8ac0 Allow storing the color for a tooltip as well s it's text 2009-07-02 12:59:13 +01:00
Mark de Wever
a5d1d2e969 New year copyright update. 2009-01-01 10:27:41 +00:00
Mark de Wever
001af46e6e Updated all headers to 2008. 2008-02-16 08:47:16 +00:00
Mark de Wever
080eb69f60 Updated the headers to state GPL 2+ and a few changelog cleanups. 2007-08-15 13:41:56 +00:00
Mark de Wever
bb01934b85 A rather large update which updates the copyright info
* Wesnoth is distributed under the terms of the GPL version 2, made
  that more explicit

* updated the copyright range to 2007

* updated Dave's email adress
2007-07-21 07:28:04 +00:00
David Philippi
f231fb12e0 merged patch #714 by silene
- removal of dead stuff and static linkage marking for internal functions
2007-04-06 12:26:02 +00:00
András Salamon
cc1b0aecf0 add copyright notices (please change as appropriate), and deDOSify 2005-07-20 08:22:37 +00:00
Guillaume Melquiond
6c5e990813 Please verify that headers are still self-contained after removing a dependency. 2005-03-23 08:52:10 +00:00
Yann Dirson
a5a9f8205d cleanup of deps against display: fonts do not need a display at all 2005-03-15 20:01:31 +00:00
Yann Dirson
887f32d629 cleanup of deps against display: tooltips do not need a display for most work 2005-03-15 00:45:00 +00:00
Yann Dirson
59ad858b54 include cleanup: tooltips 2005-03-10 22:29:57 +00:00
Yann Dirson
26bbe121a7 removed more useless inclusions 2005-03-09 17:01:09 +00:00
Guillaume Melquiond
95d4f8ce12 Remove unused parameters and fix font drawing invokation in tooltips.cpp. 2004-11-27 10:53:22 +00:00
Philippe Plantier
ac441889d9 [[Animation refactoring]]
* Refactoring of all animation code in unit_display and halo.

* Adding animated.hpp, and the animated<T> template.

* Partial rewrite of image.?pp for speed: looking up images was what
  was slowing the game

* Replacing all SDL_Surface*, and scoped_sdl_surface, with
  shared_sdl_surface, which was renamed surface.

* Optimizing halo movement when unit moves

* Inlining some stuff for performance reasons

* Optimizing invalide_all redraws

* Adding support for animated terrain images
2004-07-18 19:02:25 +00:00
Dave White
78df98d752 fixed problem with tooltips not always being displayed correctly 2003-11-25 23:53:35 +00:00
Dave White
7003c8da39 final changes for RC3 2003-10-29 05:34:48 +00:00
Dave White
35f11b1cee added tooltips for text that cannot fit 2003-10-04 06:09:11 +00:00