mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 03:59:19 +02:00
refactor(sonar): use auto where the type is spelled out on the right (cpp:S5827)
This commit is contained in:
@@ -117,8 +117,8 @@ void render_task::run()
|
||||
|
||||
if (outputWidth != nullptr && outputHeight != nullptr && m_target != nullptr)
|
||||
{
|
||||
const int screenWidth = static_cast<int>(PyLong_AsLong(outputWidth));
|
||||
const int screenHeight = static_cast<int>(PyLong_AsLong(outputHeight));
|
||||
const auto screenWidth = static_cast<int>(PyLong_AsLong(outputWidth));
|
||||
const auto screenHeight = static_cast<int>(PyLong_AsLong(outputHeight));
|
||||
|
||||
const bool useRgb = false && !Global.gfx_usegles;
|
||||
|
||||
|
||||
@@ -7,25 +7,25 @@
|
||||
|
||||
void texture_window_resize(GLFWwindow *win, int w, int h)
|
||||
{
|
||||
python_screen_viewer *texwindow = (python_screen_viewer*)glfwGetWindowUserPointer(win);
|
||||
auto texwindow = (python_screen_viewer*)glfwGetWindowUserPointer(win);
|
||||
texwindow->notify_window_size(win, w, h);
|
||||
}
|
||||
|
||||
void texture_window_fb_resize(GLFWwindow *win, int w, int h)
|
||||
{
|
||||
python_screen_viewer *texwindow = (python_screen_viewer*)glfwGetWindowUserPointer(win);
|
||||
auto texwindow = (python_screen_viewer*)glfwGetWindowUserPointer(win);
|
||||
texwindow->notify_window_fb_size(win, w, h);
|
||||
}
|
||||
|
||||
void texture_window_mouse_button(GLFWwindow *win, int button, int action, int /*mods*/)
|
||||
{
|
||||
python_screen_viewer *texwindow = (python_screen_viewer*)glfwGetWindowUserPointer(win);
|
||||
auto texwindow = (python_screen_viewer*)glfwGetWindowUserPointer(win);
|
||||
texwindow->notify_click(win, button, action);
|
||||
}
|
||||
|
||||
void texture_window_cursor_pos(GLFWwindow *win, double x, double y)
|
||||
{
|
||||
python_screen_viewer *texwindow = (python_screen_viewer*)glfwGetWindowUserPointer(win);
|
||||
auto texwindow = (python_screen_viewer*)glfwGetWindowUserPointer(win);
|
||||
texwindow->notify_cursor_pos(win, x, y);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user