mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
[client] egl: determine mouse scale using both horiz and vert size
This commit is contained in:
parent
f53adc7a05
commit
35efa551ef
@ -481,7 +481,9 @@ static void egl_onResize(LG_Renderer * renderer, const int width, const int heig
|
|||||||
if (this->scalePointer)
|
if (this->scalePointer)
|
||||||
{
|
{
|
||||||
float scale = max(1.0f,
|
float scale = max(1.0f,
|
||||||
this->formatValid ? (float)this->format.width / this->width : 1.0f);
|
this->formatValid ?
|
||||||
|
max((float)this->format.width / this->width, (float)this->format.height / this->height)
|
||||||
|
: 1.0f);
|
||||||
egl_cursorSetScale(this->cursor, scale);
|
egl_cursorSetScale(this->cursor, scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user