1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 00:04:43 +01:00

Clang tidy Part 1: Ui Project Function Names (#15956)

* Add NOLINT around STL using classes and vendor functions

* Apply clang-tidy to ui project function names

* Undo scripting clang-format

* Upper case OpenRCT2 and RCT2
This commit is contained in:
Duncan
2021-11-23 13:18:07 +00:00
committed by GitHub
parent fcf587dfa4
commit bb2c7dbaca
84 changed files with 3939 additions and 3959 deletions

View File

@@ -20,11 +20,11 @@ static rct_widget window_main_widgets[] = {
WIDGETS_END,
};
void window_main_paint(rct_window *w, rct_drawpixelinfo *dpi);
void WindowMainPaint(rct_window *w, rct_drawpixelinfo *dpi);
static rct_window_event_list window_main_events([](auto& events)
{
events.paint = &window_main_paint;
events.paint = &WindowMainPaint;
});
// clang-format on
@@ -32,7 +32,7 @@ static rct_window_event_list window_main_events([](auto& events)
* Creates the main window that holds the main viewport.
* rct2: 0x0066B3E8
*/
rct_window* window_main_open()
rct_window* WindowMainOpen()
{
window_main_widgets[0].right = context_get_width();
window_main_widgets[0].bottom = context_get_height();
@@ -58,7 +58,7 @@ rct_window* window_main_open()
* This function immediately jumps to 0x00685BE1 this is the second function
* decompiled.
*/
void window_main_paint(rct_window* w, rct_drawpixelinfo* dpi)
void WindowMainPaint(rct_window* w, rct_drawpixelinfo* dpi)
{
viewport_render(dpi, w->viewport, { { dpi->x, dpi->y }, { dpi->x + dpi->width, dpi->y + dpi->height } });
}