mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25: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_) {
|
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;
|
new_cursor_pos_y;
|
||||||
|
|
||||||
// set control window pos
|
// set control window pos
|
||||||
@@ -94,7 +94,8 @@ int Render::ControlWindow() {
|
|||||||
|
|
||||||
if (0 != mouse_diff_control_bar_pos_x_ &&
|
if (0 != mouse_diff_control_bar_pos_x_ &&
|
||||||
0 != mouse_diff_control_bar_pos_y_) {
|
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;
|
reset_control_bar_pos_ = false;
|
||||||
} else if (!reset_control_bar_pos_ &&
|
} else if (!reset_control_bar_pos_ &&
|
||||||
|
|||||||
@@ -215,8 +215,8 @@ class Render {
|
|||||||
|
|
||||||
float control_bar_pos_x_ = 0;
|
float control_bar_pos_x_ = 0;
|
||||||
float control_bar_pos_y_ = 30;
|
float control_bar_pos_y_ = 30;
|
||||||
int mouse_diff_control_bar_pos_x_ = 0;
|
float mouse_diff_control_bar_pos_x_ = 0;
|
||||||
int mouse_diff_control_bar_pos_y_ = 0;
|
float mouse_diff_control_bar_pos_y_ = 0;
|
||||||
int mouse_pos_x_ = 0;
|
int mouse_pos_x_ = 0;
|
||||||
int mouse_pos_y_ = 0;
|
int mouse_pos_y_ = 0;
|
||||||
int mouse_pos_x_last_ = 0;
|
int mouse_pos_x_last_ = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user