mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-16 12:28:11 +00:00
[client] egl: scale UI elements on high DPI displays
This is done by actually rendering the text at high DPI.
This commit is contained in:
@@ -164,6 +164,13 @@ void egl_alert_set_text (EGL_Alert * alert, const char * str)
|
||||
LG_UNLOCK(alert->lock);
|
||||
}
|
||||
|
||||
void egl_alert_set_font(EGL_Alert * alert, LG_Font * fontObj)
|
||||
{
|
||||
LG_LOCK(alert->lock);
|
||||
alert->fontObj = fontObj;
|
||||
LG_UNLOCK(alert->lock);
|
||||
}
|
||||
|
||||
void egl_alert_render(EGL_Alert * alert, const float scaleX, const float scaleY)
|
||||
{
|
||||
if (alert->update)
|
||||
|
Reference in New Issue
Block a user