[client] egl: determine mouse scale using both horiz and vert size

This commit is contained in:
Geoffrey McRae 2021-12-27 11:58:00 +11:00
parent f53adc7a05
commit 35efa551ef

View File

@ -481,7 +481,9 @@ static void egl_onResize(LG_Renderer * renderer, const int width, const int heig
if (this->scalePointer)
{
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);
}