mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
[fix] fix all unused variables and type conversions on Windows
This commit is contained in:
@@ -47,7 +47,7 @@ int Render::ControlWindow() {
|
||||
}
|
||||
|
||||
if (reset_control_bar_pos_) {
|
||||
int new_control_window_pos_x, new_control_window_pos_y, new_cursor_pos_x,
|
||||
float new_control_window_pos_x, new_control_window_pos_y, new_cursor_pos_x,
|
||||
new_cursor_pos_y;
|
||||
|
||||
// set control window pos
|
||||
@@ -94,7 +94,8 @@ int Render::ControlWindow() {
|
||||
|
||||
if (0 != mouse_diff_control_bar_pos_x_ &&
|
||||
0 != mouse_diff_control_bar_pos_y_) {
|
||||
SDL_WarpMouseInWindow(stream_window_, new_cursor_pos_x, new_cursor_pos_y);
|
||||
SDL_WarpMouseInWindow(stream_window_, (int)new_cursor_pos_x,
|
||||
(int)new_cursor_pos_y);
|
||||
}
|
||||
reset_control_bar_pos_ = false;
|
||||
} else if (!reset_control_bar_pos_ &&
|
||||
|
||||
@@ -215,8 +215,8 @@ class Render {
|
||||
|
||||
float control_bar_pos_x_ = 0;
|
||||
float control_bar_pos_y_ = 30;
|
||||
int mouse_diff_control_bar_pos_x_ = 0;
|
||||
int mouse_diff_control_bar_pos_y_ = 0;
|
||||
float mouse_diff_control_bar_pos_x_ = 0;
|
||||
float mouse_diff_control_bar_pos_y_ = 0;
|
||||
int mouse_pos_x_ = 0;
|
||||
int mouse_pos_y_ = 0;
|
||||
int mouse_pos_x_last_ = 0;
|
||||
|
||||
Reference in New Issue
Block a user