Fix misses palette change when OSD cleared (in non DEBUG mode)

Change-Id: I9c2e740549db22d347a79cc2d0b4fc07035d7e54
pull/28/head
David Banks 2018-10-19 07:11:22 +01:00
rodzic 2c29a22117
commit b0cc71ccbd
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -9,6 +9,7 @@
#include "logging.h"
#include "osd.h"
#include "rpi-gpio.h"
#include "rpi-mailbox.h"
#include "rpi-mailbox-interface.h"
#include "saa5050_font.h"
@ -207,6 +208,8 @@ uint32_t *osd_get_palette() {
}
static void update_palette() {
// Flush the previous swapBuffer() response from the GPU->ARM mailbox
RPI_Mailbox0Flush( MB0_TAGS_ARM_TO_VC );
RPI_PropertyInit();
RPI_PropertyAddTag( TAG_SET_PALETTE, osd_get_palette());
RPI_PropertyProcess();