mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
OSD background rendering (#13897)
* Ensure display severity attribute is set to defaults for background items * MAX7456 doesn't have a background layer
This commit is contained in:
parent
c88f7c9016
commit
73b26168cd
2 changed files with 3 additions and 2 deletions
|
@ -2151,8 +2151,9 @@ static bool osdDrawSingleElementBackground(displayPort_t *osdDisplayPort, uint8_
|
|||
activeElement.type = OSD_TYPE(osdElementConfig()->item_pos[item]);
|
||||
activeElement.buff = elementBuff;
|
||||
activeElement.osdDisplayPort = osdDisplayPort;
|
||||
activeElement.rendered = true;
|
||||
activeElement.drawElement = true;
|
||||
activeElement.rendered = true;
|
||||
activeElement.attr = DISPLAYPORT_SEVERITY_NORMAL;
|
||||
|
||||
// Call the element background drawing function
|
||||
osdElementBackgroundFunction[item](&activeElement);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue