1From 25302469b6ceb2fa10ac68c07da25c6068ffd218 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 7 Nov 2018 01:16:59 -0800
4Subject: [PATCH] Fix build with vc4 driver
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8Upstream-Status: Pending
9
10 SubtitleRenderer.cpp | 7 ++++++-
11 SubtitleRenderer.h   | 1 +
12 2 files changed, 7 insertions(+), 1 deletion(-)
13
14diff --git a/SubtitleRenderer.cpp b/SubtitleRenderer.cpp
15index 540162f..fcfc708 100644
16--- a/SubtitleRenderer.cpp
17+++ b/SubtitleRenderer.cpp
18@@ -36,6 +36,11 @@
19 #include <algorithm>
20
21 #include "bcm_host.h"
22+typedef struct {
23+  DISPMANX_ELEMENT_HANDLE_T element;
24+  int width;
25+  int height;
26+} EGL_DISPMANX_WINDOW_T;
27
28 class BoxRenderer {
29   VGPath path_;
30@@ -618,4 +623,4 @@ void SubtitleRenderer::set_rect(int x1, int y1, int x2, int y2) BOOST_NOEXCEPT
31     float font_size = height*font_size_;
32     ENFORCE(!FT_Set_Pixel_Sizes(ft_face_, 0, font_size));
33     ENFORCE(!FT_Set_Pixel_Sizes(ft_face_italic_, 0, font_size));
34-}
35\ No newline at end of file
36+}
37diff --git a/SubtitleRenderer.h b/SubtitleRenderer.h
38index 3f60798..ebac9a1 100644
39--- a/SubtitleRenderer.h
40+++ b/SubtitleRenderer.h
41@@ -26,6 +26,7 @@
42 // ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
43 // DEALINGS IN THE SOFTWARE.
44
45+#include <interface/vmcs_host/vc_dispmanx.h>
46 #include <EGL/egl.h>
47 #include <VG/openvg.h>
48 #include <ft2build.h>
49--
502.19.1
51
52