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

This commit is contained in:
Geoffrey McRae committed 2021-12-28 19:04:24 +11:00
1 parent f53adc7a05
commit 35efa551ef
1 file changed
+3 -1
+3 -1
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);
}