Ticket #11265: 0001-Set-palette-correctly-when-DVD-menu-highlight-change.patch

File 0001-Set-palette-correctly-when-DVD-menu-highlight-change.patch, 1.2 KB (added by peper03@…, 8 years ago)
  • mythtv/libs/libmythtv/DVD/dvdringbuffer.cpp

    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) 
    14831483        m_button_color[i] = 0xf & (hl.palette >> (16+4 *i ));
    14841484    }
    14851485
     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
    14861494    m_hl_button.setCoords(hl.sx, hl.sy, hl.ex, hl.ey);
    14871495
    14881496    if (((hl.sx + hl.sy) > 0) &&