Matt
d6975a8f23
Fix #9365 : Crash when bringing window to front
2019-06-04 07:02:55 +02:00
Matt
951f5009ef
Refactor window storage to use std::list instead of std::vector
2019-05-29 19:32:18 +02:00
Ted John
f842d8a693
Fix #5103 : OpenGL: ride track preview not rendered
2019-05-02 00:07:43 +00:00
Aaron van Geffen
f4602d0a34
Use SCREEN_FLAGS_EDITOR when appropriate.
2019-03-20 20:58:08 +01:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00
Aaron van Geffen
3be6137fde
Rename event_07 to periodic_update. ( #8684 )
2019-02-07 17:46:52 +01:00
ζeh Matt
7d19a5bc77
Refactor memcpy to std::memcpy and memset to std::memset ( #8408 )
2018-12-15 22:23:31 +01:00
Matt
4bc69a0111
Introduce gCurrentRealTimeTicks and refactor some variable names.
2018-12-01 16:36:00 +01:00
Hielke Morsink
354d973a48
Use std::size instead of Util::CountOf
2018-11-23 21:59:08 +01:00
Aaron van Geffen
a5ad9a3729
Merge pull request #7971 from Osmodium/7930-part2-Add-open-folder-button
...
#7930 part2 add open folder button
2018-09-14 00:03:58 +02:00
Aaron van Geffen
d6769fafe2
Move title menu buttons up to compensate for new item.
2018-09-13 23:20:17 +02:00
Matt
a89b352fb2
Rename rct_sprite::unknown to rct_sprite::generic
2018-08-20 18:27:40 +02:00
Linus Unnebäck
fd07be587a
Remove Math::Clamp in favour of std::clamp
2018-08-12 16:47:12 +01:00
clang-format
95ce592579
Enforce not breaking before assignments and function names
...
Co-authored-by: Hielke Morsink <hielke.morsink@gmail.com >
2018-07-23 16:00:19 +02:00
Hielke Morsink
472320d8f3
Correct formatting up to the management folder
...
I went over the commits ab7f22f..8726712 (bulk format commits for game actions to management inclusive) and corrected all mistakes I found. Most of them have to do with arrays missing trailing commas, making clang-format indent the entire array or not add breaks between the values.
2018-07-23 16:00:15 +02:00
clang-format
17d2693422
clang-format interface
2018-07-23 16:00:04 +02:00
Michael Steenbeek
1b08fb4e69
Replace our own integer types with standard ones
2018-06-20 17:30:40 +02:00
Ted John
98905fdbc3
Change g_window_list to use the heap for windows
2018-06-16 16:04:01 +01:00
Ted John
0f6138f8b6
Convert g_window_list to a std::vector
2018-06-16 16:04:01 +01:00
Ted John
26666b1da9
Remove empty function: viewport_update_pointers
2018-06-15 23:15:52 +01:00
Hielke Morsink
0cf256ac9e
Ready copyright notice for clang-format
...
Clang-format sees the text behind `#pragma region` as code and formats it. Instead of stating the copyright and date there, it's now in the comment block right below it. The text "Copyright" is left in the `#pragma region` line, as clang-format sees it as a single identifier.
I took the opportunity to normalize the dates, and add the copyright notice to the source files where it was missing them (except for third-party and the generated resources.h file).
2018-06-15 14:07:34 +02:00
Michał Janiszewski
1d28826b79
Fix -Wdocumentation and add it to default warnings
2018-06-11 09:52:54 +02:00
Ted John
510786fc1a
Fix Linux builds
2018-06-11 01:22:18 +02:00
Ted John
04da3be824
Move Widget.cpp to libopenrct2ui
2018-06-11 00:04:41 +01:00
Ted John
a4d6a45e78
Move window_all_wheel_input to libopenrct2ui
2018-06-10 23:56:05 +01:00
Ted John
e6e61c3a2f
Move create window code to libopenrct2ui
2018-06-10 23:34:20 +01:00
Hielke Morsink
36d123b272
Revert renaming of spinners ( #7650 )
2018-06-10 21:31:08 +02:00
Hielke Morsink
cb1c55def5
Add extra checks to verify the widget belongs to a toolsize or stepper
...
It's possible that widgets are arranged in such a way that the roder of buttons matches the order of tool-size widgets or steppers. Now instead of just checking the types, also their content will be checked.
2018-06-04 15:49:05 +02:00
Hielke Morsink
32c4dab6c8
Move cut-away stepper logic to mousedown handler
...
This makes scrolling work for the stepper widget, and overrides behaviour for scrolling anywhere else in the window.
2018-06-04 13:41:27 +02:00
Hielke Morsink
a82d6cb195
Allow scrolling up and down on steppers to change their values
2018-06-04 01:10:57 +02:00
Ted John
34531f7afb
Fix signed/unsigned mismatch warnings ( #7529 )
...
Unignore MSVC warning: C4245:
'conversion_type': conversion from 'type1' to 'type2', signed/unsigned mismatch
2018-05-16 21:22:17 +01:00
Michał Janiszewski
cd065d4f41
Reduce includes in common header
2018-03-20 00:27:58 +01:00
Ted John
3c29b15de9
Fix segfault if no RCT2 install path
2018-02-11 10:39:15 +00:00
Gymnasiast
778ba466c5
Remove almost every extern C block
2018-02-05 16:20:15 +01:00
Marijn van der Werf
7efaf3dd80
Decrease dependency of world on windows
2018-02-01 13:59:46 +01:00
Gymnasiast
5cc21fd21b
Replace NULL with nullptr in C++ files
2018-01-29 21:33:21 +00:00
Marijn van der Werf
d09134e64a
Decrease Window dependencies in Vehicle.cpp
2018-01-18 22:57:55 +01:00
Marijn van der Werf
430bf482f2
Add viewport getter
2018-01-18 22:57:55 +01:00
Marijn van der Werf
aa0933d08a
Convert rct_window to opaque pointer
2018-01-18 22:57:55 +01:00
Michał Janiszewski
3ba0cc3dae
Add missed constexprs
2018-01-14 16:13:37 +01:00
Michael Steenbeek
cd5a1ba888
Compile files in world folder as C++
2018-01-11 13:25:09 +01:00
Aaron van Geffen
7b4c71ff68
Remove unused WWT_4, WWT_5, WWT_11, WWT_18.
2018-01-07 23:54:51 +01:00
Michał Janiszewski
77c4fa00bc
Use nullptr instead of NULL in C++
2018-01-07 21:43:37 +01:00
Michał Janiszewski
2c8528798f
Use explicit boolean values, compare with nullptr
2018-01-07 21:38:02 +01:00
Ted John
c3eab7ead6
Refactor window.c to C++
2018-01-07 12:39:58 +01:00