Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-05-01 | Fix #9152, Fix #9153: screenshot command showed error messages when successful | rubidium42 | |
2021-05-01 | Codechange: Scale sprite font height once on init instead of every call to ↵ | Peter Nelson | |
GetHeight(). Scaling is not expensive, but it does not change either, and this avoids the need for a virtual method call. This cascades back to all GetCharacterHeight(FS_xxx) and FONT_HEIGHT_xxx calls. | |||
2021-05-01 | Cleanup: Use GetDefaultFontHeight() call instead of direct access. | Peter Nelson | |
This makes this part of font size setup in FreeTypeFontCache consist with OSX and Windows variants. | |||
2021-04-30 | Fix: Cargo legend blob in cargo payment rate window did not rescale. | Peter Nelson | |
2021-04-30 | Fix: Scale cargo lines in industry chain window. | Peter Nelson | |
Replaces constant pixel values with values scaled based on font size. This allows the industry chain to maintain a consistent look across different sizes. Previously all except cargo line height were fixed. | |||
2021-04-30 | Fix: Scale industry chain legend blob by font size. | Peter Nelson | |
2021-04-30 | Fix: Improved scaling and spacing of sign list window. | Peter Nelson | |
Both company icon sprite and text now centred within each row, and extra padding added to avoid the sprites running into each other. | |||
2021-04-30 | Fix: Scale legend blobs in Fund new industry window. | Peter Nelson | |
2021-04-30 | Fix: Scale smallmap legend 'blob' to fit text. | Peter Nelson | |
2021-04-30 | Fix: Tidy up sizing of sprite aligner window sprite list. | Peter Nelson | |
2021-04-30 | Fix: Company Key window scaling. | Peter Nelson | |
2021-04-30 | Fix: Use unscaled values for padding OSK | Peter Nelson | |
2021-04-30 | Codechange: Use text lines instead of pixel height of font for link graph ↵ | Peter Nelson | |
widgets. | |||
2021-04-30 | Codechange: Apply minimum size to toolbar widgets | Peter Nelson | |
2021-04-30 | Codechange: No longer necessary to manually resize volume sliders. | Peter Nelson | |
2021-04-30 | Fix: Recalculate padding and minimum sizes when GUI or Font zoom is changed. | Peter Nelson | |
2021-04-30 | Cleanup: Set unchanging scrollbar properties in constructor. | Peter Nelson | |
2021-04-30 | Cleanup: Call SetMinimalSize instead of setting min_y directly. | Peter Nelson | |
2021-04-30 | Fix: Specify width when width is required instead of top. | Peter Nelson | |
2021-04-30 | Codechange: Simplify calling of DrawCharCentered() | Peter Nelson | |
2021-04-30 | Cleanup: Tidy up resize, fill and minimal size on widgets in town list window. | Peter Nelson | |
2021-04-30 | Cleanup: Remove fairly redundant DrawDropdown() function. | Peter Nelson | |
2021-04-30 | Cleanup: Horizontal widget size is commonly width rather than length. | Peter Nelson | |
2021-04-30 | Codechange: Use C++ features for train wagon overrides. (#9141) | PeterN | |
This removes the need for C-style array management and allows use of iterators to perform wagon override lookups. | |||
2021-04-30 | Remove: performance measurements in YAPF | Patric Stout | |
YAPF was constantly measuring its performance, but only at certain debug-levels this information was shown. Now after years, I sincerely wonder if anyone still knows about this feature and who still use it. Especially with the new framerate window, this detailed performance is not as meaningful anymore as it once was. | |||
2021-04-30 | Cleanup: remove weird left-over comment in yapf.hpp | Patric Stout | |
2021-04-30 | Change: use TCP for everything except for master-server and initial server ↵ | Patric Stout | |
scan (#9130) This means that pressing Refresh button and adding servers manually now uses TCP. The master-server and initial scan are still UDP as they will be replaced by Game Coordinator; no need to change this now. If we query a server that is too old, show a proper warning to the user informing him the server is too old. | |||
2021-04-29 | Fix: String validation could leave invalid Utf8 encoded strings (#9096) | rubidium42 | |
In case a character was encoded in multiple bytes, but required fewer bytes to be encoded, the first byte would be copied to the output leaving an invalid Utf8 encoded string. Later uses of the validated string would use the same decode logic, which would yield a question mark and just read a single byte, so nothing dangerous happened. Furthermore, because the next byte would not be a first byte of an encoded Utf8 character, the last few valid characters could be removed by the validation as well. | |||
2021-04-29 | Cleanup: Remove old FiosList helper methods. (#9139) | PeterN | |
2021-04-29 | Codechange: Replace FOR_ALL_CARGOSPECS with range-based for loops | glx22 | |
2021-04-29 | Codechange: Replace window related FOR_ALL with range-based for loops | glx22 | |
2021-04-29 | Change: [Network] Encapsulate logic about the connection string to the ↵ | rubidium42 | |
network code (#23) | |||
2021-04-29 | Codechange: use NetworkAddress instead of two host/port variables where possible | Patric Stout | |
This also means we no longer need last_host/last_port, but can just use a single last_joined setting. | |||
2021-04-29 | Codechange: use std::string over stack-based strings if possible | Patric Stout | |
2021-04-29 | Cleanup: remove write-only variable "hostname" in NetworkGameList | Patric Stout | |
2021-04-29 | Fix: 'Cache' top and bottom lines of textfile viewer to avoid overdraw. (#9131) | PeterN | |
* Fix: 'Cache' top and bottom lines of textfile viewer to avoid overdraw. The text file viewer calculated the number of lines required to set the scrollbar, but did not retain this information, so this was recalculated on every draw operation. This includes overdrawing text outside the bounds of the current scroll position. With this change the top and bottom lines for each line of text are remembered, and reflowing is avoided where possible. Text outside the current scroll bounds is not drawn. Additionally the scroll interval is now based on text lines instead of pixel lines, which increases the text capacity depending on the font size. * Fix: Limit text viewer to showing 64k lines. Text files with more than 64k wrapped lines would exceed the scrollbar capacity and cause an assert. This is harder to reach now that the scrollbar counts lines instead of pixels. | |||
2021-04-29 | Update: Translations from eints | translators | |
norwegian (bokmal): 16 changes by Anolitt finnish: 2 changes by hpiirai | |||
2021-04-29 | Fix: [MinGW] Set minimum OS version to Windows XP (#9135) | Loïc Guilloux | |
2021-04-28 | Cleanup: Replace FOR_ALL_SORTED_CARGOSPECS macro with range iterator. | Peter Nelson | |
2021-04-28 | Cleanup: Replace FOR_ALL_SORTED_ROADTYPES macro with range iterator. | Peter Nelson | |
2021-04-28 | Cleanup: Replace FOR_ALL_SORTED_RAILTYPES macro with range iterator. | Peter Nelson | |
2021-04-28 | Fix: Incorrect vertical alignment of icon and text in DropDownListIconItem. ↵ | PeterN | |
(#9133) This happens if the bounding dimensions are changed so that each item is the same size, as happens on the railtype/roadtype dropdown lists, as the vertical offset was calculated before this dimension is changed. | |||
2021-04-28 | Fix b3003dd1: swap SERVER_GAME_INFO with CLIENT_GAME_INFO (#9129) | Patric Stout | |
The idea is that if you query an older server that does not support this packet yet, the client receives an error. The assumption was that on every "illegal packet" the connection would be closed. This turns out to be false. Now CLIENT_GAME_INFO aligns with the old PACKET_CLIENT_NEWGRFS_CHECKED, which does a pre-check (which fails), and an error is sent back and the connection is closed. This is not a nice solution, but it is the best we got. | |||
2021-04-28 | Codechange: Use __attribute__ access none to silence GCC 11 ↵ | Milek7 | |
-Wmaybe-uninitialized warnings (#9124) | |||
2021-04-28 | Update: Translations from eints | translators | |
spanish (mexican): 40 changes by absay english (us): 1 change by 2TallTyler korean: 3 changes by telk5093 german: 1 change by danidoedel finnish: 1 change by hpiirai catalan: 1 change by J0anJosep portuguese: 45 changes by azulcosta portuguese (brazilian): 44 changes by Vimerum | |||
2021-04-27 | Fix: missing <limits> include in network/core/packet.h (#9123) | Milek7 | |
2021-04-27 | Change: no longer use UDP when entering the lobby of a server | Patric Stout | |
The lobby of a server requested some parts via UDP and some via TCP. This is strictly seen fine, but for future extensions it is a lot easier if just one protocol is used. | |||
2021-04-27 | Codechange: refactor CheckGameCompatibility() from existing function | Patric Stout | |
Later commits use this function in other places too. | |||
2021-04-27 | Add: ability to retrieve game info from server over TCP | Patric Stout | |
2021-04-27 | Codechange: be explicit in pointer comparisons | Patric Stout | |