mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 22:01:46 +00:00
[client] egl: determine mouse scale using both horiz and vert size
This commit is contained in:
parent
f53adc7a05
commit
35efa551ef
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue