mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
cc_frm_button.cpp: remove not required statement call
Avoids oversized button with too long text.
Error was observed in some lua plugin windows with large font scale settings
and with osd resolution of 1280x720.
Origin commit data
------------------
Commit: 72948c74b8
Author: Thilo Graf <dbt@novatux.de>
Date: 2020-12-07 (Mon, 07 Dec 2020)
This commit is contained in:
@@ -216,8 +216,6 @@ void CComponentsButton::initCaption()
|
||||
Font *tmp_font = cc_btn_font;
|
||||
if ((tmp_font->getHeight()-reduce) > (height-reduce) || (tmp_font->getRenderWidth(cc_btn_text)-reduce) > width-reduce)
|
||||
tmp_font = *cc_btn_dy_font->getDynFont(w_cap, h_cap, cc_btn_text);
|
||||
if ((cc_btn_font->getHeight()-reduce) > (height-reduce))
|
||||
tmp_font = *cc_btn_dy_font->getDynFont(w_cap, h_cap, cc_btn_text);
|
||||
|
||||
cc_btn_font = tmp_font;
|
||||
|
||||
|
Reference in New Issue
Block a user