summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-05-02Fix: Update text effect size when font zoom is changed. (#9174)PeterN
2021-05-02Fix: Crash when extra viewport height is zero with sign in view. (#9175)PeterN
If a viewport sign straddles the top of a viewport, a crash will occur if the viewport height is zero. This is resolved by simply not attempting to draw the viewport in this situation, consistent with other widgets.
2021-05-02Codechange: Warn if randomaction2 group count is not a power of 2.Peter Nelson
Previously noted by a comment, this does not need to be guarded against as non-powers of 2 will not cause issues beyond the choice of results being reduced.
2021-05-02Cleanup: Use range iterator to evaluate DeterministicSpriteGroup.Peter Nelson
2021-05-02Cleanup: Use std::vector in RandomSpriteGroup.Peter Nelson
2021-05-02Cleanup: Use std::vector in DeterministicSpriteGroup.Peter Nelson
2021-05-02Cleanup: Use std::vector in RealSpriteGroup.Peter Nelson
2021-05-01Codechange: move some OS abstraction method implementations out of the headerrubidium42
2021-05-01Codechange: encapsulate network error handlingrubidium42
2021-05-01Codechange: rename NetworkError to ShowNetworkErrorrubidium42
2021-05-01Fix 3d7ab09: stopped trains not updating viewport hash when reversed for a ↵Matt Kimber
second time (#9165)
2021-05-01Fix 3d7ab09: stopped trains not updating viewport hash when reversed for a ↵Matt Kimber
second time (#9165)
2021-05-01Fix #6598: Prevent invalid memory accesses when abandoning a join from ↵rubidium42
within a network game One could join a network game from within an already running network game. This would call a NetworkDisconnect, but keeps the UI alive. If, during that process the join is aborted, e.g. by cancelling on a password dialog, you would still be in your network game but also get shown the server list. Solve all the underlying problems by falling back to the main UI when (re)connecting to a(nother) server.
2021-05-01Codechange: Move join information into a single structurerubidium42
2021-05-01Fix #6598: Do not disconnect before company number validationrubidium42
NetworkClientConnectGame already does a NetworkDisconnect, so no reason to do it here
2021-05-01Change: [Console] Show help when passing invalid company numberrubidium42
2021-05-01Fix: Don't consider regression AIs when starting a random AI (#9164)Loïc Guilloux
2021-05-01Change: [Actions] Add a 2 minutes timeout for regression test (#9166)Loïc Guilloux
2021-05-01Feature: make the town directory horizontally resizablerubidium42
2021-05-01Fix d4f0b6f4: [CMake] CMAKE_PROJECT_VERSION_XXX are not in CMake 3.9 (#9154)Loïc Guilloux
2021-05-01Fix #9152, Fix #9153: screenshot command showed error messages when successfulrubidium42
2021-05-01Codechange: 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-01Cleanup: 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-30Fix: Cargo legend blob in cargo payment rate window did not rescale.Peter Nelson
2021-04-30Fix: 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-30Fix: Scale industry chain legend blob by font size.Peter Nelson
2021-04-30Fix: 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-30Fix: Scale legend blobs in Fund new industry window.Peter Nelson
2021-04-30Fix: Scale smallmap legend 'blob' to fit text.Peter Nelson
2021-04-30Fix: Tidy up sizing of sprite aligner window sprite list.Peter Nelson
2021-04-30Fix: Company Key window scaling.Peter Nelson
2021-04-30Fix: Use unscaled values for padding OSKPeter Nelson
2021-04-30Codechange: Use text lines instead of pixel height of font for link graph ↵Peter Nelson
widgets.
2021-04-30Codechange: Apply minimum size to toolbar widgetsPeter Nelson
2021-04-30Codechange: No longer necessary to manually resize volume sliders.Peter Nelson
2021-04-30Fix: Recalculate padding and minimum sizes when GUI or Font zoom is changed.Peter Nelson
2021-04-30Cleanup: Set unchanging scrollbar properties in constructor.Peter Nelson
2021-04-30Cleanup: Call SetMinimalSize instead of setting min_y directly.Peter Nelson
2021-04-30Fix: Specify width when width is required instead of top.Peter Nelson
2021-04-30Codechange: Simplify calling of DrawCharCentered()Peter Nelson
2021-04-30Cleanup: Tidy up resize, fill and minimal size on widgets in town list window.Peter Nelson
2021-04-30Cleanup: Remove fairly redundant DrawDropdown() function.Peter Nelson
2021-04-30Cleanup: Horizontal widget size is commonly width rather than length.Peter Nelson
2021-04-30Codechange: 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-30Remove: performance measurements in YAPFPatric 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-30Cleanup: remove weird left-over comment in yapf.hppPatric Stout
2021-04-30Change: 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-29Fix: 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-29Cleanup: Remove old FiosList helper methods. (#9139)PeterN
2021-04-29Codechange: Replace FOR_ALL_CARGOSPECS with range-based for loopsglx22