Commit graph

158 commits

Author SHA1 Message Date
Mark de Wever
fe33804d90 Convert quit from stick to jailbreak exception.
The goal is to replace all stikcy exceptions jail break exceptions and
make the exeption handling of Lua a bit more like normal C++ exception
handling.
2011-03-27 20:55:18 +00:00
Mark de Wever
ecbabea838 New year copyright update. 2011-01-01 15:57:50 +00:00
Mark de Wever
c4fc0f897c Remove an unneeded include. 2010-11-21 13:57:02 +00:00
Ignacio R. Morelle
d6a3de1938 Apply patch #2213 by stikonas, using file #11274 2010-11-21 01:56:29 +00:00
Ali El Gariani
c63a7d97ae Improving constness of surface: forbid to blit on a const surface. 2010-10-01 01:43:16 +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
Alexander van Gessel
48ce177759 Made some more errors inherit from game::error 2010-08-03 18:36:59 +01:00
Guillaume Melquiond
0ee3b0a6db Factored the whole exception handling.
Implemented sticky exceptions that can be rethrown at will.

Used them to ensure that quitting the game, loading a new game, and
leaving to title screen, work correctly when WML is being executed.
2010-07-31 10:52:26 +00:00
Ali El Gariani
662e60bfe1 Simplify header dependency 2010-06-14 15:02:44 +00:00
Eric S. Raymond
0e0b0fd70f Committing patch #1578: Resolution problem fix.
Fixes bug #15773: in windowed resolution for 1024x600 monitors is
1024x768 if the video card supports it.
2010-04-02 21:06:52 +00:00
Mark de Wever
92f5f92ce5 New year copyright update. 2010-01-01 13:16:49 +00:00
Guillaume Melquiond
e624420d96 Removed unused functions CVideo::get*. 2009-08-16 17:17:56 +00:00
Guillaume Melquiond
fca395d007 Removed unused functions CVideo::*lock. 2009-08-16 17:17:51 +00:00
Guillaume Melquiond
c190c85d19 Removed unused constructor of CVideo. 2009-08-16 17:17:45 +00:00
Mark de Wever
bbcb2b40cd Add parameter for the fake screen.
In order to make unit testing with different screen sizes possible it's
required to allow the setting of these values. Decided against doing it
in the constructor since I want to test on different screen sizes so
will rerun the function to get a different size. (Unit test code will be
committed later.)
2009-04-30 20:56:49 +00:00
Nils Kneuper
94db27b43a "real" removal of the gamma slider leftovers...
...(slightly related to the fix for bug #33148 since the mess is
getting cleaned up now...)
2009-02-28 16:12:49 +00:00
Mark de Wever
973a0a7d5c Remove trailing whitespace. 2009-01-01 10:28:26 +00:00
Mark de Wever
a5d1d2e969 New year copyright update. 2009-01-01 10:27:41 +00:00
Tomasz Śniatowski
e691fff0b6 make the CVideo class noncopyable...
...(copying it is a sign of a typo that will be caught by the compiler
this way instead of crashing at runtime)
2008-10-17 17:43:20 +01:00
Mark de Wever
47c83520e9 Remove useless void. 2008-09-26 17:52:26 +00:00
Pauli Nieminen
efab5f8300 [[big heap of miscellaneous fixes]]
* Made map labels not to register if having empty text. (labels are
  still needing rewrite)

* Fixed filter check for missing tags report

* Made SDL_Init(TIMER) called in all platforms (This initializes
  variables in sdl; eg SDL_GetTicks counter)

* Added campaignd server cr encoding conbersion so old data is
  converted to new format

* Made Unit test website find old error with less strict parameters
2008-08-11 01:16:11 +00:00
Pauli Nieminen
47fb8ac6af fake_display for unit tests
added first get_save_name dialog test case
2008-07-04 22:43:05 +00:00
Pauli Nieminen
21b0f0bc47 Made endlevel test to use fake screen object
moved fake_event_source class to test tests/utils/
2008-07-04 13:36:45 +00:00
Mark de Wever
cfce9b03f7 Add underscore to private members. 2008-06-22 06:51:29 +00:00
Mark de Wever
001af46e6e Updated all headers to 2008. 2008-02-16 08:47:16 +00:00
Patrick Parker
b058ecda17 another attempt to fix bug#9734 for the linux people
(works on my system so just stabbing in the dark)
2007-08-19 03:34:33 +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
Patrick Parker
c491f73077 the countdown timer alert can now start sounding while dialogs are open
added a mechanism for generic monitoring of events::pump()
2007-07-27 02:02:17 +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
Rusty Russell
8b69833317 Move away from SDL_Delay for gui-related delays,
so --nogui runs at full speed (doing AI testing)
2006-05-26 01:03:08 +00:00
Patrick Parker
cfb19e2583 added slate-border selection style to attack dialog
also, minor warning fix and documentation
2006-05-23 17:39:22 +00:00
András Salamon
8d25fb99a6 codeclean in src, mostly Dave's new email address (checked with cvs diff -b)
BY THE WAY, many of the source files have no copyright headers!
2005-07-02 21:37:20 +00:00
András Salamon
8bd9bc98a5 ran codeclean against files 2005-06-04 19:16:06 +00:00
Philippe Plantier
39efc08b48 Fixed bug #12386:
Background glitch when changing from windowed to fullscreen mode and
vice versa.
2005-04-13 18:47:20 +00:00
Yann Dirson
d7d7ab8054 moved the overlay-related part of CVideo::flip() up to display;
this causes intro and about to require again a display, but that does
not harm much compared to this cleanup in video deps
2005-03-24 21:35:52 +00:00
Yann Dirson
a077c6c2ea moved update_lock stuff from display to video 2005-03-16 21:49:37 +00:00
Yann Dirson
3d60db811d moved help_string stuff from display to video 2005-03-16 20:50:12 +00:00
Yann Dirson
b456d80a34 moved blit_surface() from display to video, more cleanup of deps against display 2005-03-15 22:14:04 +00:00
Yann Dirson
04ba5d8068 more cleanup of deps against display 2005-03-15 21:47:41 +00:00
Yann Dirson
c8e9141af1 cleanup of deps against display: added a screen_area() to video.cpp 2005-03-15 00:42:44 +00:00
Philippe Plantier
0bd2381c63 Fixed the window not always refreshing on resizing
Made default savegame names be ellipsed when they are too long
2004-10-27 20:42:37 +00:00
Philippe Plantier
8b25ef4fcf Fixed tools not building 2004-07-19 18:31:32 +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
Philippe Plantier
54393fd46b Added Gamma Correction in preferences 2004-06-07 21:29:15 +00:00
Dave White
111cd8cbfa made resizing the window in the title screen work properly, ...
...and made basic keyboard shortcuts work in the title scren
2004-05-05 00:40:15 +00:00
Dave White
4ccc9cc647 added command line options 2004-02-27 19:18:55 +00:00
uid68803
31eaa2dfff fixed problem with changing video modes on machines that use emulated bpp 2004-01-30 16:08:39 +00:00
uid69097
1a77a34d75 A workaround to allow users not using 16BPP to change video mode 2003-12-30 21:47:57 +00:00
Dave White
a2b3c84ea0 made display draw more efficiently 2003-10-31 05:38:14 +00:00
Dave White
1e8c560f07 minor re-arrangements 2003-10-16 11:05:26 +00:00