From 2ca8f476af067f04815b7eb1ce3d4ccce0b924eb Mon Sep 17 00:00:00 2001
From: Richard <peper03@yahoo.com>
Date: Thu, 29 Nov 2012 20:54:55 +0100
Subject: [PATCH] Set palette correctly when DVD menu highlight changes to
ensure highlights are the right colour/have the correct
transparency.
---
mythtv/libs/libmythtv/DVD/dvdringbuffer.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/mythtv/libs/libmythtv/DVD/dvdringbuffer.cpp b/mythtv/libs/libmythtv/DVD/dvdringbuffer.cpp
index 5d2feca..cb9b1af 100644
a
|
b
|
bool DVDRingBuffer::DVDButtonUpdate(bool b_mode) |
1483 | 1483 | m_button_color[i] = 0xf & (hl.palette >> (16+4 *i )); |
1484 | 1484 | } |
1485 | 1485 | |
| 1486 | // If the button overlay has already been decoded, make sure |
| 1487 | // the correct palette for the current highlight is set |
| 1488 | if (m_dvdMenuButton.rects && (m_dvdMenuButton.num_rects > 1)) |
| 1489 | { |
| 1490 | guess_palette((uint32_t*)m_dvdMenuButton.rects[1]->pict.data[1], |
| 1491 | m_button_color, m_button_alpha); |
| 1492 | } |
| 1493 | |
1486 | 1494 | m_hl_button.setCoords(hl.sx, hl.sy, hl.ex, hl.ey); |
1487 | 1495 | |
1488 | 1496 | if (((hl.sx + hl.sy) > 0) && |