mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-19 02:58:09 +00:00
[client] egl: decrease the font size for the help text
This commit is contained in:
parent
2993f7ae7d
commit
1d99c821eb
1 changed files with 17 additions and 3 deletions
|
@ -103,6 +103,7 @@ struct Inst
|
||||||
|
|
||||||
const LG_Font * font;
|
const LG_Font * font;
|
||||||
LG_FontObj fontObj;
|
LG_FontObj fontObj;
|
||||||
|
LG_FontObj helpFontObj;
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct Option egl_options[] =
|
static struct Option egl_options[] =
|
||||||
|
@ -200,6 +201,12 @@ bool egl_create(void ** opaque, const LG_RendererParams params, bool * needsOpen
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this->font->create(&this->helpFontObj, NULL, 14))
|
||||||
|
{
|
||||||
|
DEBUG_ERROR("Failed to create a font instance");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
*needsOpenGL = false;
|
*needsOpenGL = false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -215,8 +222,15 @@ void egl_deinitialize(void * opaque)
|
||||||
{
|
{
|
||||||
struct Inst * this = (struct Inst *)opaque;
|
struct Inst * this = (struct Inst *)opaque;
|
||||||
|
|
||||||
if (this->font && this->fontObj)
|
if (this->font)
|
||||||
this->font->destroy(this->fontObj);
|
{
|
||||||
|
if (this->fontObj)
|
||||||
|
this->font->destroy(this->fontObj);
|
||||||
|
|
||||||
|
if (this->helpFontObj)
|
||||||
|
this->font->destroy(this->helpFontObj);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
egl_desktop_free(&this->desktop);
|
egl_desktop_free(&this->desktop);
|
||||||
egl_cursor_free (&this->cursor);
|
egl_cursor_free (&this->cursor);
|
||||||
|
@ -641,7 +655,7 @@ bool egl_render_startup(void * opaque)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!egl_help_init(&this->help, this->font, this->fontObj))
|
if (!egl_help_init(&this->help, this->font, this->helpFontObj))
|
||||||
{
|
{
|
||||||
DEBUG_ERROR("Failed to initialize the alert display");
|
DEBUG_ERROR("Failed to initialize the alert display");
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue