Commit Graph

585 Commits

Author SHA1 Message Date
Sergii Pylypenko 26f6a01580 Renamed GetMinSizing() to GetMinButtonSize(), we do not use it for anything but button size 2021-05-07 22:54:49 +03:00
Sergii Pylypenko 1efdce0358 Removed less used sizing types 2021-05-07 22:51:44 +03:00
Sergii Pylypenko e80df6ae8e Removed NWST_STEP and min_step, we don't need two variables doing the same thing 2021-05-07 22:24:45 +03:00
Sergii Pylypenko 607d73f872 Merge tag '1.11.2' into 1.11 2021-05-07 21:53:27 +03:00
PeterN dd70d0ad85 Fix: Crash when extra viewport height is zero with sign in view. (#9175)
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-03 19:33:42 +01:00
Sergii Pylypenko 561ce3ee7f Merge tag '1.11.1' into 1.11 2021-04-25 22:58:47 +03:00
Charles Pigott 9acb8f7d2c Fix #8919: Release builds with asserts enabled (#8925) 2021-04-18 21:31:21 +01:00
Sergii Pylypenko 403ff8badd Merge tag '1.11.0' into 1.11 2021-04-01 21:19:42 +03:00
Patric Stout 183df5c981 Codechange: Suppress warnings when asserts are disabled (#8917) 2021-04-01 11:50:37 +02:00
Sergii Pylypenko 6ff256a3d1 Merge tag '1.11.0-RC1' into master 2021-03-15 21:01:22 +02:00
Tyler Trahan de891238d6 Change: Recolour graph windows to brown (#8700) 2021-03-11 15:30:29 +01:00
PeterN 9fdc881005 Fix: Scale PIP-padding the same as regular padding. (#8829) 2021-03-09 10:43:04 +01:00
pelya 2bc0595127 Fixed Android compilation and warnings 2021-01-25 21:31:09 +02:00
pelya 3a82c97aa1 Merge remote-tracking branch 'upstream/master' 2021-01-25 00:50:42 +02:00
Patric Stout af22a4f2cd Add: show in the tooltip of disabled toolbar buttons why they are disabled 2021-01-08 16:43:51 +01:00
Charles Pigott 9b800a96ed Codechange: Remove min/max functions in favour of STL variants (#8502) 2021-01-08 11:16:18 +01:00
TechGeekNZ a10013dd00 Codechange: Spell 'Viewport' consistently
Some places in the codebase misspell 'Viewport' as 'ViewPort' or 'view_port'.
This patch makes everything consistent.
2020-07-27 17:31:29 +01:00
TechGeekNZ 8652a4db76 Cleanup: Give SetDirtyBlocks a more descriptive name. 2020-06-09 13:15:47 +01:00
pelya 798fbc3466 Merge branch 'origin/master' commit 'a499e9acdd385b57dd43caf88af3a6f7f53716ba' 2020-03-20 00:10:46 +02:00
Sergii Pylypenko 17ee6fa299 Scroll most lists by finger dragging list contents 2020-03-19 21:39:20 +02:00
Sergii Pylypenko aa4b5de6e1 Fixed compilaiton in window and widget code 2020-03-19 21:23:50 +02:00
S. D. Cloudt 13cc8a0cee Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
glx 1f418555a1 Fix #7742, 66dd7c3: widget position can be negative 2019-09-17 20:11:34 +02:00
Niels Martin Hansen 62dec9f174 Fix: Scale all min size and padding by UI scale 2019-04-24 23:04:55 +02:00
Sergii Pylypenko 3ba683874b Merge remote-tracking branch 'origin/master' into HEAD 2019-04-23 18:16:24 +03:00
Henry Wilson 7c8e7c6b6e Codechange: Use null pointer literal instead of the NULL macro 2019-04-10 23:22:20 +02:00
Peter Nelson de9f54ccc1 Codechange: Change scrolling_scrollbar to mouse_capture_widget, and dispatch OnClick() event if widget is not a scrollbar.
This allows any widget to support mouse capture.
2019-02-21 08:11:35 +00:00
Charles Pigott f5b1115039 Doc: Lots and lots of doxymentation fixes 2018-10-31 12:35:54 +01:00
Sergii Pylypenko 66e3334f0e Merge upstream branch 1.8 2018-05-31 22:59:50 +03:00
frosch 8f58cc6dac (svn r27863) [1.7] -Backport from trunk:
- Fix: Black remap did nothing in 8bpp-simple blitter (r27837)
- Fix: Misaligned resize icon due to widget bounds being inclusive (r27831)
- Fix: Update viewport sign dimensions when changing GUI zoom level (r27827, r27819)
- Fix: Vehicle viewport is not user scrollable so flag window as such (r27823)
- Fix: Allow dropdown to be drawn above origin widget even with scrollbar (r27820)
- Fix: 32bpp-anim blitters assumed that pitch and width of the screen were equal [FS#6545] (r27796)
- Fix: Chat text background overflowed due to missing padding [FS#6526] (r27794)
2018-05-31 22:05:29 +03:00
pelya 450858784e Toned down window closing by dragging, dim window when it's closed 2018-05-31 21:57:30 +03:00
pelya e56f422ad5 April 1-st is already passed 2018-05-31 21:57:30 +03:00
pelya 37407ed33c April 1st, fools! 2018-05-31 21:57:30 +03:00
pelya 25db807f7f no-titlebars: fixed dragon droppings 2018-05-31 21:55:29 +03:00
pelya 85d5d964ec Clicking widgets is broken, the focus changes at random 2018-05-31 21:55:29 +03:00
pelya c6d4812563 Option in settings for window decorations 2018-05-31 21:55:29 +03:00
pelya 406e98c722 Also draw ornaments on window captions 2018-05-31 21:55:29 +03:00
pelya 4db62fcd1d Removed unused ornament images 2018-05-31 21:55:29 +03:00
pelya 2b2275c169 Draw ornament on all edges 2018-05-31 21:55:29 +03:00
pelya 10950d3022 I can tweak the ornament forever 2018-05-31 21:55:29 +03:00
pelya 54231ca1d5 New ornament pattern 2018-05-31 21:55:29 +03:00
pelya a9bab5fb5b Updated edge ornament 2018-05-31 21:55:29 +03:00
pelya 9d01d66923 Edge ornaments, not finished 2018-05-31 21:55:29 +03:00
pelya 03868523af Fixed windows resizing with no titlebars 2018-05-31 21:55:28 +03:00
pelya 5c0ecf1359 Fixed few UI bugs in titlebarless windows 2018-05-31 21:55:28 +03:00
pelya 2024e456fa Small refactoring 2018-05-31 21:55:28 +03:00
pelya 0f91382c7b Hide title bars for all windows when 'title bars' option is de-selected 2018-05-31 21:55:28 +03:00
frosch b4b98e5165 (svn r27893) -Codechange: Use fallthrough attribute. (LordAro) 2017-08-13 18:38:42 +00:00
peter1138 efe201d1df (svn r27831) -Fix (r24577): Misaligned resize icon (due to widget bounds being inclusive) 2017-03-26 19:07:08 +00:00
peter1138 bcc5c9f81d (svn r27821) -Change: Draw images in centre of buttons (inspired by Juanjo) 2017-03-23 22:00:00 +00:00