mirror of
https://github.com/LizardByte/Sunshine.git
synced 2025-03-16 13:20:52 +00:00
Fix cursor position on lower resolution screens
This commit is contained in:
parent
7b45f0d899
commit
67df04e0a2
@ -248,8 +248,8 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
auto x = ((float)rel_x) * cursor_scale;
|
||||
auto y = ((float)rel_y) * cursor_scale;
|
||||
auto x = ((float)rel_x);
|
||||
auto y = ((float)rel_y);
|
||||
|
||||
cursor_view.TopLeftX = x;
|
||||
cursor_view.TopLeftY = y;
|
||||
@ -384,7 +384,6 @@ public:
|
||||
|
||||
this->device_ctx_p = device_ctx_p;
|
||||
|
||||
cursor_scale = (float)out_width / (float)in_width;
|
||||
cursor_visible = false;
|
||||
cursor_view.MinDepth = 0.0f;
|
||||
cursor_view.MaxDepth = 1.0f;
|
||||
@ -644,7 +643,6 @@ public:
|
||||
ps_t scene_ps;
|
||||
|
||||
D3D11_VIEWPORT cursor_view;
|
||||
float cursor_scale;
|
||||
bool cursor_visible;
|
||||
|
||||
float out_width, out_height;
|
||||
|
@ -373,11 +373,9 @@ static encoder_t software {
|
||||
static std::vector<encoder_t> encoders {
|
||||
#ifdef _WIN32
|
||||
nvenc,
|
||||
#endif
|
||||
software,
|
||||
#ifdef _WIN32
|
||||
amdvce,
|
||||
#endif
|
||||
software
|
||||
};
|
||||
|
||||
void reset_display(std::shared_ptr<platf::display_t> &disp, AVHWDeviceType type) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user