------------------------------------------------------------------------ r17854 | alberth | 2009-10-24 15:19:06 +0000 (Sat, 24 Oct 2009) | 1 line -Codechange: Merge different cases of setting widget data together in the view vehicle window. ------------------------------------------------------------------------ r17853 | rubidium | 2009-10-24 14:53:55 +0000 (Sat, 24 Oct 2009) | 2 lines -Codechange: remove the 'delta' parameter from OnResize; it was used in ways that aren't always wanted, causing bugs and the like. Also with nested widgets most reasons for handling OnResize have gone. ------------------------------------------------------------------------ r17852 | alberth | 2009-10-24 13:58:18 +0000 (Sat, 24 Oct 2009) | 1 line -Codechange: Use viewport nested widget in the view-vehicle window. ------------------------------------------------------------------------ r17851 | alberth | 2009-10-24 13:49:04 +0000 (Sat, 24 Oct 2009) | 1 line -Codechange: Use pure nested widgets for the view-vehicle window. ------------------------------------------------------------------------ r17850 | rubidium | 2009-10-24 09:47:02 +0000 (Sat, 24 Oct 2009) | 2 lines -Codechange: remove most usage of delta on OnResize ------------------------------------------------------------------------ r17849 | rubidium | 2009-10-23 21:10:36 +0000 (Fri, 23 Oct 2009) | 2 lines -Codechange: make the saveload windows nested ------------------------------------------------------------------------ r17848 | rubidium | 2009-10-23 21:10:24 +0000 (Fri, 23 Oct 2009) | 2 lines -Codechange: allow overriding (some) settings of STACKED_SELECTION_ZERO_SIZE widgets via UpdateWidgetSize ------------------------------------------------------------------------ r17847 | translators | 2009-10-23 17:45:07 +0000 (Fri, 23 Oct 2009) | 3 lines -Update from WebTranslator v3.0: basque - 7 changes by Thadah ------------------------------------------------------------------------ r17846 | rubidium | 2009-10-22 16:45:29 +0000 (Thu, 22 Oct 2009) | 2 lines -Codechange: make the network content window nested ------------------------------------------------------------------------ r17845 | frosch | 2009-10-22 16:01:28 +0000 (Thu, 22 Oct 2009) | 1 line -Fix (r17744): Missing 'g' in sed command. ------------------------------------------------------------------------ r17844 | rubidium | 2009-10-22 15:20:38 +0000 (Thu, 22 Oct 2009) | 2 lines -Fix (r17790): typo in the documentation ------------------------------------------------------------------------ r17843 | rubidium | 2009-10-22 14:26:18 +0000 (Thu, 22 Oct 2009) | 2 lines -Codechange: move the details drawing code of the content window to a separate function ------------------------------------------------------------------------ r17842 | rubidium | 2009-10-22 14:24:11 +0000 (Thu, 22 Oct 2009) | 2 lines -Fix: DrawStringMultiLine would in some corner case, top = bottom + 1, draw the string ------------------------------------------------------------------------ r17841 | rubidium | 2009-10-22 13:57:39 +0000 (Thu, 22 Oct 2009) | 2 lines -Codechange: move state changes from OnPaint to OnInvalidate for the content gui. ------------------------------------------------------------------------ r17840 | rubidium | 2009-10-21 19:42:49 +0000 (Wed, 21 Oct 2009) | 2 lines -Codechange: use the new pool's concepts (caching + not zeroing). Improves average CargoPacket con/destruction time by ~20%, MoveTo/Append by 5-10% and application performance by up to 2%. ------------------------------------------------------------------------ r17839 | rubidium | 2009-10-21 19:38:50 +0000 (Wed, 21 Oct 2009) | 2 lines -Codechange: implement the concept of 'caching' pool items to pools, that is instead of 'free' push the unused items in a linked list and use them on 'malloc'. Also add the concept of zeroing, or actually not zeroing, on new for pool items. ------------------------------------------------------------------------ r17838 | rubidium | 2009-10-21 15:40:50 +0000 (Wed, 21 Oct 2009) | 2 lines -Document: the Pool struct's template parameters ------------------------------------------------------------------------ r17837 | rubidium | 2009-10-21 10:05:22 +0000 (Wed, 21 Oct 2009) | 2 lines -Fix (r17812): comment erroneously mentioned feeder share ------------------------------------------------------------------------ r17836 | rubidium | 2009-10-20 22:24:34 +0000 (Tue, 20 Oct 2009) | 2 lines -Codechange: split the CargoPacket constructor for creating 'real' new CargoPackets and saveload. For saveload we do not need to set anything except two variables (the rest is always overwritten by the load), for new 'real' cargo also pass the source_xy; dereferencing st before calling is easier than resolving st->index back to st and then dereferencing. Also don't set loaded_at_xy because that is of no importance when not loaded in a vehicle. ------------------------------------------------------------------------ r17835 | smatz | 2009-10-20 22:17:39 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: constify few variables ------------------------------------------------------------------------ r17834 | rubidium | 2009-10-20 22:06:33 +0000 (Tue, 20 Oct 2009) | 2 lines -Fix [FS#3274] (r17808): you got paid a bit too much... ofcourse the index of the source station generally doesn't equal the location of said station. ------------------------------------------------------------------------ r17833 | alberth | 2009-10-20 21:41:44 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: Depot gui should use relative widget coordinates for clicking. ------------------------------------------------------------------------ r17832 | smatz | 2009-10-20 21:27:44 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: make Alberth happier ------------------------------------------------------------------------ r17831 | smatz | 2009-10-20 21:26:56 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: move code used for adding map indicators of the smallmap to separate functions ------------------------------------------------------------------------ r17830 | frosch | 2009-10-20 21:25:25 +0000 (Tue, 20 Oct 2009) | 1 line -Fix [FS#3276]: Some windows already need their window_number when setting up smallest size (e.g. for DParams). So assign it earlier in Window::InitializeData instead of dealing with each window separately. ------------------------------------------------------------------------ r17829 | smatz | 2009-10-20 20:57:30 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: move code used for adding vehicles and town names to minimap to separate functions ------------------------------------------------------------------------ r17828 | alberth | 2009-10-20 20:06:25 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: Variable declaration code style, and a few comment typo-ish fixes. ------------------------------------------------------------------------ r17827 | frosch | 2009-10-20 20:01:56 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: Deduplicate some lines of code. ------------------------------------------------------------------------ r17826 | frosch | 2009-10-20 19:55:09 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: GetRoadVehLength() is only used in one file, make it static. ------------------------------------------------------------------------ r17825 | smatz | 2009-10-20 19:38:51 +0000 (Tue, 20 Oct 2009) | 1 line -Change: 'animate' the 'center to current position' button in SmallMapWindow when pressed ------------------------------------------------------------------------ r17824 | frosch | 2009-10-20 19:30:50 +0000 (Tue, 20 Oct 2009) | 1 line -Fix (r4594): _date_fract runs from 0 to 73 since r2041. Variable 0x09 should not. ------------------------------------------------------------------------ r17823 | alberth | 2009-10-20 18:39:45 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: Use top of the matrix widget as offset for row calculation in autoreplace window. ------------------------------------------------------------------------ r17822 | smatz | 2009-10-20 18:38:38 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: move 'extra viewport' code from smallmap_gui.cpp to viewport_gui.cpp ------------------------------------------------------------------------ r17821 | smatz | 2009-10-20 18:15:42 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: make more mathods of SmallMapWindow private ------------------------------------------------------------------------ r17820 | translators | 2009-10-20 17:45:11 +0000 (Tue, 20 Oct 2009) | 4 lines -Update from WebTranslator v3.0: traditional_chinese - 6 changes by josesun indonesian - 1 changes by prof ------------------------------------------------------------------------ r17819 | smatz | 2009-10-20 17:36:06 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: replace magic constant by symbolic constant ------------------------------------------------------------------------ r17818 | rubidium | 2009-10-20 16:36:35 +0000 (Tue, 20 Oct 2009) | 3 lines -Codechange: iterate the cargo list from the back when trying to merge packets. Chances are higher that the last packet (in the FIFO-ish queue) is mergeable with the to be added package. If a train gets loaded packets get split up and put into the different carriages, at unload they are unloaded in the same order so the last in the FIFO-ish queue is likely the packet it can merge with. This results in a 5-10% performance improvement of CargoList's Append/MoveTo without performance degradation of AgeCargo. ------------------------------------------------------------------------ r17817 | rubidium | 2009-10-20 12:31:11 +0000 (Tue, 20 Oct 2009) | 2 lines -Codechange: MakeWater actually made sea tiles, so rename it to MakeSea and unduplicate the code to make sea, rivers and canals. ------------------------------------------------------------------------ r17816 | rubidium | 2009-10-20 12:20:53 +0000 (Tue, 20 Oct 2009) | 2 lines -Codechange: move the CargoList invalidation-after-saveload to the function that handles the CargoPackets instead of spreading it around over the saveload files. Also add some code to validate whether the caches are valid; to be removed later when no problems turn up ------------------------------------------------------------------------ r17815 | rubidium | 2009-10-19 20:32:05 +0000 (Mon, 19 Oct 2009) | 2 lines -Fix [SDL]: asynchronious drawing caused extra unresponsiveness during map generation; disable the threading while generating a map ------------------------------------------------------------------------ r17814 | rubidium | 2009-10-19 15:36:35 +0000 (Mon, 19 Oct 2009) | 2 lines -Codechange: there's no need to invalidate the cache in the constructor of a CargoList; the list is empty, the CargoList is calloc-ed so all caches are 0. ------------------------------------------------------------------------ r17813 | rubidium | 2009-10-19 09:15:47 +0000 (Mon, 19 Oct 2009) | 2 lines -Codechange: unify the CargoPacket related coding style ------------------------------------------------------------------------ r17812 | rubidium | 2009-10-19 01:12:51 +0000 (Mon, 19 Oct 2009) | 2 lines -Codechange: move the feeder_share cache from CargoList to VehicleCargoList; saves 512 bytes per station and 1-2% on CargoList::MoveTo. ------------------------------------------------------------------------ r17811 | rubidium | 2009-10-18 20:56:38 +0000 (Sun, 18 Oct 2009) | 2 lines -Codechange: make HasEditBoxFocus a private function of QueryString because it's not meant to be used for determining whether the given widget actually has focus (it also checks the OSK edit box) ------------------------------------------------------------------------ r17810 | frosch | 2009-10-18 20:26:29 +0000 (Sun, 18 Oct 2009) | 3 lines -Codechange/Fix: Add assert_tcompile() and use it. OTTD's traditional assert_compile() does not work inside templates for gcc compilers, static_assert() does though. The new assert_tcompile() resolves into static_assert() if present, or into a runtime assert() else. ------------------------------------------------------------------------ r17809 | frosch | 2009-10-18 18:47:43 +0000 (Sun, 18 Oct 2009) | 1 line -Fix: MSVC compilation. ------------------------------------------------------------------------ r17808 | rubidium | 2009-10-18 17:53:34 +0000 (Sun, 18 Oct 2009) | 2 lines -Codechange: remove write 'access' from all of CargoPacket's variables ------------------------------------------------------------------------ r17807 | rubidium | 2009-10-18 17:52:44 +0000 (Sun, 18 Oct 2009) | 2 lines -Codechange: move all 'updates' just after the 'load' constructor of CargoPackets to the constructor call itself ------------------------------------------------------------------------ r17806 | rubidium | 2009-10-18 17:47:38 +0000 (Sun, 18 Oct 2009) | 2 lines -Codechange: split CargoPacket's 'afterload' to a separate function ------------------------------------------------------------------------ r17805 | translators | 2009-10-18 17:45:10 +0000 (Sun, 18 Oct 2009) | 4 lines -Update from WebTranslator v3.0: norwegian_bokmal - 1 changes by Utvik norwegian_nynorsk - 1 changes by Utvik ------------------------------------------------------------------------ r17804 | rubidium | 2009-10-18 17:26:10 +0000 (Sun, 18 Oct 2009) | 2 lines -Codechange: move the CargoPacket 'invalidation' when stations get removed to CargoPacket. ------------------------------------------------------------------------ r17803 | frosch | 2009-10-18 16:31:27 +0000 (Sun, 18 Oct 2009) | 1 line -Codechange: Remove update_(left|right) in favour of the rebuild flag of GUIList. ------------------------------------------------------------------------ r17802 | frosch | 2009-10-18 15:36:30 +0000 (Sun, 18 Oct 2009) | 1 line -Feature(ette) [FS#1862]: [NewGRF] Textstack support for CB 37. ------------------------------------------------------------------------ r17801 | rubidium | 2009-10-18 14:30:37 +0000 (Sun, 18 Oct 2009) | 2 lines -Codechange: for StationCargoLists the 'loaded_at_xy' does not matter when merging CargoPackets ------------------------------------------------------------------------ r17800 | rubidium | 2009-10-18 14:28:26 +0000 (Sun, 18 Oct 2009) | 2 lines -Codechange: first steps into making CargoList a template ------------------------------------------------------------------------ r17799 | alberth | 2009-10-18 14:10:59 +0000 (Sun, 18 Oct 2009) | 1 line -Codechange: industry view window uses pure nested widgets. ------------------------------------------------------------------------ r17798 | alberth | 2009-10-18 13:59:25 +0000 (Sun, 18 Oct 2009) | 1 line -Codechange: Introduce new constant WD_PAR_VSEP_WIDE for large amount of space between text. ------------------------------------------------------------------------ r17797 | alberth | 2009-10-18 13:56:09 +0000 (Sun, 18 Oct 2009) | 1 line -Codechange: Use parameters of new function, introduce constants for hardcoded numbers. ------------------------------------------------------------------------ r17796 | alberth | 2009-10-18 13:40:11 +0000 (Sun, 18 Oct 2009) | 1 line -Codechange: Move drawing of the industry info to its own function. ------------------------------------------------------------------------ r17795 | rubidium | 2009-10-18 13:39:00 +0000 (Sun, 18 Oct 2009) | 2 lines -Codechange: split cargolist into one for vehicles and one for stations. ------------------------------------------------------------------------ r17794 | michi_cc | 2009-10-17 22:36:43 +0000 (Sat, 17 Oct 2009) | 1 line -Feature: [OSX] Implement automatic fallback font selection for OSX. ------------------------------------------------------------------------ r17793 | michi_cc | 2009-10-17 22:36:39 +0000 (Sat, 17 Oct 2009) | 1 line -Fix: [OSX] The splash image wasn't displayed if the Quartz video driver was used. ------------------------------------------------------------------------ r17792 | michi_cc | 2009-10-17 22:36:35 +0000 (Sat, 17 Oct 2009) | 1 line -Fix [FS#3261]: [OSX] Fix (bogus) compiler warnings related to printf argument checking. ------------------------------------------------------------------------ r17791 | alberth | 2009-10-17 20:38:27 +0000 (Sat, 17 Oct 2009) | 1 line -Codechange: Highscore and endgame windows use pure nested widgets. ------------------------------------------------------------------------ r17790 | rubidium | 2009-10-17 20:34:09 +0000 (Sat, 17 Oct 2009) | 2 lines -Feature: translatable base sound/graphics set descriptions ------------------------------------------------------------------------ r17789 | translators | 2009-10-17 17:45:18 +0000 (Sat, 17 Oct 2009) | 7 lines -Update from WebTranslator v3.0: basque - 79 changes by Thadah greek - 11 changes by fumantsu norwegian_bokmal - 78 changes by Utvik norwegian_nynorsk - 1 changes by Utvik swedish - 233 changes by accatyyc ------------------------------------------------------------------------ r17788 | rubidium | 2009-10-17 15:15:00 +0000 (Sat, 17 Oct 2009) | 2 lines -Fix [FS#3268] (r16702): don't fail hard when no soundcard could be detected; just fall back on the null-driver ------------------------------------------------------------------------