frosch
4824cb7886
(svn r25569) -Codechange: Cache all Font instances in a static container.
2013-07-06 18:56:23 +00:00
frosch
72a531bc82
(svn r25568) -Fix: Non-ICU layouter started new lines with the space which triggered the linebreak.
2013-07-06 18:55:38 +00:00
frosch
3fa1b4e8c3
(svn r25567) -Codechange: Revive dead DrawStringParams as FontState.
2013-07-06 18:54:26 +00:00
translators
3c0fbaaa13
(svn r25566) -Update from WebTranslator v3.0:
...
catalan - 21 changes by smauleon
simplified_chinese - 11 changes by siu238X
traditional_chinese - 4 changes by siu238X
hungarian - 2 changes by IPG
japanese - 9 changes by guppy
norwegian_bokmal - 27 changes by cuthbert
polish - 1 changes by p0358
brazilian_portuguese - 2 changes by Tucalipe
slovak - 1 changes by Milsa
turkish - 63 changes by emremeydan
2013-07-06 17:45:58 +00:00
fonsinchen
b09c4043ec
(svn r25565) -Codechange: Rewrite order prediction logic to introduce proper refit prediction
2013-07-06 17:01:31 +00:00
frosch
290fbd2231
(svn r25564) -Add: a simple clipping rule to decide whether a string without linebreaks is visible before computing the layouting. This skips around 2/3 of layout computations in usual-sized list-like windows.
2013-07-06 12:18:20 +00:00
rubidium
e3bb1d8c73
(svn r25563) -Fix: WT3 validation error
2013-07-05 19:35:29 +00:00
frosch
840f836704
(svn r25562) -Fix [FS#5633]: If the next order cannot be resolved, reset the current order property instead of leaving it in an intermediate state.
2013-07-05 19:09:18 +00:00
translators
c6aad246c9
(svn r25561) -Update from WebTranslator v3.0:
...
traditional_chinese - 118 changes by siu238X
hungarian - 5 changes by IPG
japanese - 221 changes by guppy
slovak - 2 changes by Milsa
spanish - 2 changes by Terkhen
2013-07-05 17:45:28 +00:00
rubidium
3f7fdd738b
(svn r25558) -Fix [FS#5568]: [Squirrel] Infinite recursion loop in freeing data via a looping set of references
2013-07-04 20:06:27 +00:00
rubidium
1e715bfbea
(svn r25557) -Fix [FS#5524]: one could build bridges over owned land of another company
2013-07-04 20:05:07 +00:00
translators
021cc15672
(svn r25556) -Update from WebTranslator v3.0:
...
catalan - 83 changes by smauleon
simplified_chinese - 44 changes by siu238X
traditional_chinese - 52 changes by siu238X
french - 2 changes by glx
galician - 50 changes by Michi
hungarian - 2 changes by Brumi
japanese - 936 changes by guppy
polish - 3 changes by p0358
slovak - 2 changes by Milsa
thai - 2 changes by nirakanz
2013-07-04 17:46:01 +00:00
rubidium
4c443bce5c
(svn r25555) -Fix [FS#5632]: [Script] Texts from scripts were not validated before they were shown, causing an assertion to trigger
2013-07-04 16:36:47 +00:00
translators
76566fde5b
(svn r25554) -Update from WebTranslator v3.0:
...
czech - 44 changes by Eskymak
english_US - 2 changes by Rubidium
finnish - 2 changes by jpx_
italian - 2 changes by lorenzodv
korean - 2 changes by telk5093
russian - 2 changes by Lone_Wolf
slovak - 8 changes by Milsa
2013-07-03 17:45:39 +00:00
rubidium
1efc64fa7d
(svn r25553) -Fix [FS#5530]: provide a warning when no vehicles are available, and tell what to do in that case
2013-07-02 18:57:26 +00:00
translators
79ddda1b10
(svn r25552) -Update from WebTranslator v3.0:
...
russian - 39 changes by Lone_Wolf
slovak - 19 changes by Milsa
swedish - 1 changes by Joel_A
thai - 3 changes by nirakanz
turkish - 4 changes by emremeydan
2013-07-02 17:45:30 +00:00
frosch
e8b6d2b32d
(svn r25551) -Fix (r25465): Possible reading of uninitialised memory due to undefined execution order.
2013-07-01 19:53:05 +00:00
rubidium
d9065fbfbe
(svn r25550) -Fix [FS#5571]: [Windows] Race condition between two drawing threads could crash OpenTTD
2013-07-01 19:48:52 +00:00
translators
68659495b5
(svn r25549) -Update from WebTranslator v3.0:
...
finnish - 41 changes by jpx_
korean - 39 changes by telk5093
polish - 6 changes by p0358
slovak - 37 changes by Milsa
2013-07-01 17:45:24 +00:00
frosch
3a81868518
(svn r25548) -Fix [FS#5629] (r25537): Removed too much code and forgot some other places.
2013-07-01 17:15:30 +00:00
rubidium
7bc4845aac
(svn r25547) -Fix [FS#5626]: ICU returns the width of the visual run as if the trailing space was added (in case a newline was added). This caused the width to be more than the requested width, but it would still be drawn correctly
2013-07-01 15:26:27 +00:00
rubidium
f4c9ba4981
(svn r25546) -Fix: two small memory leaks
2013-06-30 20:40:49 +00:00
translators
36bd61f303
(svn r25545) -Update from WebTranslator v3.0:
...
croatian - 39 changes by VoyagerOne
english_AU - 39 changes by mrtux
french - 39 changes by glx
german - 1 changes by Jogio
hungarian - 39 changes by Brumi
italian - 39 changes by lorenzodv
korean - 2 changes by telk5093
polish - 5 changes by wojteks86
thai - 42 changes by nirakanz
turkish - 113 changes by emremeydan
2013-06-30 17:46:07 +00:00
rubidium
1ff95f36bf
(svn r25544) -Fix [FS#5625] (r25488, r25486): [GS] The checks and validations for setting the extra text in the town window became too stringent
2013-06-30 15:59:10 +00:00
frosch
c1bf3122ad
(svn r25543) -Cleanup: Make the bridge and object picker not restore their previous size, but the previously saved size.
2013-06-30 14:39:09 +00:00
frosch
f128c61595
(svn r25542) -Fix: Do not just add 65 pixels to the width of the train vehicle list whenever it is opened, but remember the width of the train list separately from other vehicle types.
2013-06-30 14:38:45 +00:00
frosch
c640289d7f
(svn r25541) -Cleanup: No need to clear a bit which is never set.
2013-06-30 14:38:20 +00:00
frosch
83a0174ef2
(svn r25540) -Fix: Unify selecting a new object class in the object GUI. (sbr)
2013-06-30 14:37:50 +00:00
frosch
d798766f2e
(svn r25539) -Codechange: Setup object GUI matrix before restoring selected object, so that the matrix state can be properly set. (sbr)
2013-06-30 14:37:24 +00:00
frosch
bcb0e04bf2
(svn r25538) -Fix [FS#5567] (r25283): Use the UI index of the selected object to make it visible when re-opening the build object window. (sbr)
2013-06-30 14:37:01 +00:00
frosch
43ec0bf0c1
(svn r25537) -Codechange: Optionally make WWT_MATRIX compute the number of rows and columns from the resize step size.
2013-06-30 14:36:31 +00:00
frosch
8116aeff21
(svn r25536) -Cleanup: No need to set scrollbar capacity anywhere but in OnResize.
2013-06-30 14:36:07 +00:00
frosch
634607573f
(svn r25535) -Fix [FS#5584]: Initialise scrollbars before FinishInitNested, so their capacity is set via OnResize.
2013-06-30 14:35:44 +00:00
frosch
df732f2bae
(svn r25534) -Codechange: FinishInitNested calls OnResize, no need to setup scrollbar capacity before that.
2013-06-30 14:34:23 +00:00
frosch
e184b9799c
(svn r25533) -Codechange: Use SetCapacityFromWidget more often.
2013-06-30 14:33:32 +00:00
frosch
5f8f71edf0
(svn r25532) -Fix: Do not make the minimal size of matrix or panel widgets depend on their number of rows, since that changes when resizing the window.
2013-06-30 14:33:15 +00:00
frosch
98fdd20f84
(svn r25531) -Codechange: Use separate function to set data of WWT_MATRIX widgets.
2013-06-30 14:32:31 +00:00
alberth
631540c400
(svn r25527) -Fix[FS#5621]: strndup should not examine strings beyond its upper limit.
2013-06-30 08:29:51 +00:00
rubidium
92f276f26d
(svn r25526) -Fix: line breaking in fallback layouter was off-by-one, so sometimes strings that needed to be broken off earlier got truncated later on
2013-06-30 07:46:10 +00:00
rubidium
4fed658a63
(svn r25525) -Fix: off-by-one in fallback layout w.r.t. colour/font changes
2013-06-30 07:29:31 +00:00
rubidium
ea5d35a896
(svn r25524) -Fix [FS#5624]: fallback layouter broke on long "words" without space after a newline
2013-06-30 07:21:37 +00:00
rubidium
4fbcb73166
(svn r25523) -Fix [FS#5587]: SDL does not give an event when an application gets mouse focus while going to full screen, so manually force the mouse-is-in-window state
2013-06-29 18:21:19 +00:00
translators
d894a6b897
(svn r25521) -Update from WebTranslator v3.0:
...
english_US - 39 changes by Rubidium
german - 40 changes by Jogio, planetmaker
japanese - 48 changes by riolukid
korean - 3 changes by telk5093
spanish - 39 changes by Terkhen
tamil - 16 changes by aswn
turkish - 154 changes by emremeydan
2013-06-29 17:45:43 +00:00
rubidium
c33040e037
(svn r25520) -Fix-ish: don't pretend that trunk is still doing something 1.3-ish in the Windows executable version information
2013-06-29 16:13:41 +00:00
zuu
be4451d40f
(svn r25519) -Fix [FS#5614] (r25342): Select page to update by its id and not the page id
2013-06-29 14:54:07 +00:00
rubidium
094ac8c441
(svn r25518) -Cleanup: remove old string
2013-06-29 13:20:40 +00:00
rubidium
4356510408
(svn r25517) -Fix-ish (r25515) / Feature-ish [FS#5623]: properly align the statistics as well when the infra sharing is turned on
2013-06-29 13:19:19 +00:00
rubidium
ba1e42d057
(svn r25516) -Codechange: reduce code duplication in infrastructure statistics window
2013-06-29 13:11:52 +00:00
rubidium
c27ce651c9
(svn r25515) -Feature [FS#5595]: right align the infrastructure statistics
2013-06-29 12:41:43 +00:00
rubidium
1b9f54f0b2
(svn r25514) -Update: other translations
2013-06-29 12:11:38 +00:00
rubidium
bdb62c14e2
(svn r25513) -Fix [FS#5623]: the high score's company/president name was stored with encoded string codes, causing it to cause trouble when the encoding of the string codes changes. Furthermore, check the incoming dangerous content better
2013-06-29 12:09:55 +00:00
rubidium
66b7123ed9
(svn r25512) -Fix-ish: the high score company name could not have enough space to have both the company and president name
2013-06-29 12:07:40 +00:00
rubidium
fac0b83df6
(svn r25511) -Fix-ish: add the same printable key assert to the sprite font cache as the freetype font cache
2013-06-29 12:03:44 +00:00
rubidium
dd49c84363
(svn r25510) -Fix: forgot to update some documentation
2013-06-29 09:51:03 +00:00
rubidium
096f1e37d3
(svn r25509) -Cleanup: remove old strings
2013-06-29 09:50:32 +00:00
rubidium
f9c9ff6ec3
(svn r25508) -Change: split unit localisation choice into a choice per type of unit, and move it to the advanced settings
...
-Feature [FS#5482]: have tractive effort in imperial (lbf) and metric (kgf) units
-Feature: have weights and volumes in imperial units (short tons, gallons)
2013-06-29 09:47:18 +00:00
rubidium
6e97b7a6e8
(svn r25507) -Cleanup: double definition
2013-06-29 08:58:25 +00:00
rubidium
5b2a5ac790
(svn r25506) -Document: a function, and name it slightly better
2013-06-28 21:11:35 +00:00
rubidium
31af0a3397
(svn r25505) -Fix [FS#5563]: use proper doxygen style link to images
2013-06-28 20:54:05 +00:00
rubidium
3831e3829d
(svn r25501) -Fix: compilation error on OS X
2013-06-28 19:31:31 +00:00
frosch
934f4decba
(svn r25497) -Fix (r25479): byte is not unit
2013-06-28 19:20:45 +00:00
rubidium
d3ccc7c194
(svn r25495) -Fix [FS#5553]: when addings bits to a (train) station, the train trying to stop there could overshoot the (new) stop location and not stop at all
2013-06-28 18:09:07 +00:00
translators
6e8f2f29f5
(svn r25494) -Update from WebTranslator v3.0:
...
catalan - 7 changes by juanjo
spanish - 5 changes by juanjo
vietnamese - 9 changes by nglekhoi
2013-06-28 17:45:19 +00:00
rubidium
0c14a586bd
(svn r25493) -Codechange: support for the safer variant of ICU's getFontTable
2013-06-27 21:21:47 +00:00
michi_cc
6f359bc1f0
(svn r25492) -Doc: Missing comment.
2013-06-27 21:18:56 +00:00
rubidium
11e6d5c8df
(svn r25490) -Fix [FS#5610]: the face of the manager differed on clients when the company was started after the clients joined
2013-06-27 20:20:13 +00:00
rubidium
868001a1e0
(svn r25489) -Fix (r25488): we want to have the begin, not the end of the decoded text as string to pass along
2013-06-27 20:07:09 +00:00
rubidium
19eca468fc
(svn r25488) -Fix [FS#5613]: do not send encoded texts to names, but decode them into a plain C string and then pass them on
2013-06-27 19:57:41 +00:00
rubidium
8463335b00
(svn r25487) -Fix: do not allow control codes in names of things (signs, vehicles, towns, stations, etc), so they have a known maximum fixed size and are, by definition, the same for everyone
2013-06-27 19:56:54 +00:00
rubidium
5d37e21d04
(svn r25486) -Fix [FS#5613-ish]: missing length validation for town and president names in script APIs
2013-06-27 19:23:23 +00:00
rubidium
928df8163a
(svn r25485) -Fix-ish: silence compiler warning
2013-06-27 18:33:46 +00:00
translators
b82a3460d1
(svn r25484) -Update from WebTranslator v3.0:
...
luxembourgish - 21 changes by Phreeze
slovak - 2 changes by Milsa
2013-06-27 17:45:14 +00:00
rubidium
6ab0545022
(svn r25483) -Fix: don't commit too much...
2013-06-27 16:25:30 +00:00
rubidium
569eaf0e11
(svn r25482) -Fix [FS#5620]: forced newlines were not properly handled
2013-06-27 16:24:19 +00:00
rubidium
bd2f4b9a24
(svn r25481) -Fix [FS#5620]: when the font size and colour change directly after eachother in a string, the latter isn't taken into account
2013-06-27 15:22:19 +00:00
michi_cc
0150ab1bb2
(svn r25480) -Codechange: [OSX] OS X SDK versions >= 10.5 always have a non-const iconv declaration.
2013-06-26 21:17:09 +00:00
frosch
7c9f0545b4
(svn r25479) -Fix (r23861): [NewGRF] When cargo NewGRF define a mulitplier to modify vehicle capacities, use the same multiplier to modify loading speed.
2013-06-26 20:38:32 +00:00
frosch
653a005d19
(svn r25478) -Fix: Clip glyphs using the actual sprite dimensions instead of the text advancement.
2013-06-26 19:35:40 +00:00
rubidium
809120bc05
(svn r25477) -Fix: truncation didn't work because the string was truncated (or rather a newline was added) too early
2013-06-26 19:10:22 +00:00
frosch
eb7962a72e
(svn r25476) -Cleanup: Remove unused _max_char_size, _max_char_height, _max_char_width.
2013-06-26 18:49:53 +00:00
translators
fc5335111d
(svn r25475) -Update from WebTranslator v3.0:
...
czech - 59 changes by Eskymak
luxembourgish - 8 changes by Phreeze
slovak - 27 changes by Milsa
thai - 4 changes by nirakanz
2013-06-26 17:45:27 +00:00
rubidium
8f9d213675
(svn r25474) -Fix [FS#5618]: OS X compilation failure
2013-06-26 15:02:16 +00:00
rubidium
3fe1e9176d
(svn r25473) -Fix: uninitialised warning
2013-06-25 20:48:12 +00:00
rubidium
f980d1a43c
(svn r25472) -Cleanup: remove the old methods for drawing text
2013-06-25 20:44:54 +00:00
rubidium
8bbbb1b37a
(svn r25471) -Fix/Feature [FS#5481]: support for Brahmic scripts (e.g. Tamil and Thai)
2013-06-25 20:44:23 +00:00
rubidium
48c1e4f87e
(svn r25470) -Feature-ish: use ICU's layout engine when that's available
2013-06-25 20:40:58 +00:00
rubidium
7b10e39bf1
(svn r25469) -Add: method for getting the font tables from freetype fonts
2013-06-25 20:39:58 +00:00
rubidium
c90dbe2018
(svn r25468) -Fix-ish: the min/max of the close box were so small the glyph wouldn't even fit between them
2013-06-25 20:39:03 +00:00
rubidium
899c4d85e4
(svn r25467) -Add: truncation support to the drawing routine
2013-06-25 20:38:29 +00:00
rubidium
4f0ef61d4e
(svn r25466) -Add: drawing routine for the layout engine
2013-06-25 20:38:12 +00:00
rubidium
2446b8ea60
(svn r25465) -Codechange: add the concept of a layouting engine for text
2013-06-25 20:29:31 +00:00
frosch
bbbecceae1
(svn r25464) -Fix: Hide default size button in non-newstation rail-station picker since it is not resizeable anyway.
2013-06-25 20:22:08 +00:00
rubidium
43a37f7f28
(svn r25463) -Codechange: export more size related information from the fonts
2013-06-25 20:21:21 +00:00
rubidium
092c33be3f
(svn r25462) -Codechange: make a better distinction between characters and glyphs
2013-06-25 20:20:15 +00:00
rubidium
b4106e686b
(svn r25461) -Fix: MSVC compiler warning
2013-06-25 18:52:12 +00:00
translators
9bb031533d
(svn r25460) -Update from WebTranslator v3.0:
...
czech - 4 changes by Eskymak
german - 3 changes by Jogio
luxembourgish - 2 changes by Phreeze
2013-06-25 17:45:17 +00:00
frosch
e158383118
(svn r25459) -Fix: Disable the depot-refit button in the order GUI, if the consist is not refittable.
2013-06-24 21:02:26 +00:00
frosch
58ae2d5aeb
(svn r25458) -Fix-ish: Enable the autorefit-button in the order GUI in case the vehicle is not auto-refittable but already has a autorefit-order set to allow clearing the refit.
2013-06-24 21:01:05 +00:00
frosch
bfbdbe688e
(svn r25457) -Fix: Do not test EF_AUTO_REFIT for the mail apartment or rotor of aircraft.
2013-06-24 20:58:25 +00:00
frosch
abb5a13f1e
(svn r25456) -Fix [FS#5560]: Assertion when opening the refit GUI for a not refittable vehicle.
2013-06-24 20:57:50 +00:00