mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
Merge branch 'cst-next' into nmp-cst-next
- Fix merge conflicts
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7a3c90fccf
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-08-19 (Fri, 19 Aug 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -77,7 +77,7 @@
|
||||
#include <zapit/zapit.h>
|
||||
#include <video.h>
|
||||
extern cVideo * videoDecoder;
|
||||
extern CInfoClock *InfoClock;
|
||||
|
||||
|
||||
//------------------------------------------------------------------------
|
||||
bool comparePictureByDate (const CPicture& a, const CPicture& b)
|
||||
@@ -163,13 +163,12 @@ int CPictureViewerGui::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
width = frameBuffer->getScreenWidthRel();
|
||||
height = frameBuffer->getScreenHeightRel();
|
||||
|
||||
sheight = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getHeight();
|
||||
theight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]->getHeight();
|
||||
fheight = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->getHeight();
|
||||
|
||||
//get footerHeight from paintButtons
|
||||
buttons1Height = ::paintButtons(0, 0, 0, PictureViewerButtons1Count, PictureViewerButtons1, 0, 0, "", false, COL_INFOBAR_SHADOW_TEXT, NULL, 0, false);
|
||||
buttons2Height = ::paintButtons(0, 0, 0, PictureViewerButtons2Count, PictureViewerButtons2, 0, 0, "", false, COL_INFOBAR_SHADOW_TEXT, NULL, 0, false);
|
||||
buttons1Height = ::paintButtons(0, 0, 0, PictureViewerButtons1Count, PictureViewerButtons1, 0, 0, "", false, COL_MENUFOOT_TEXT, NULL, 0, false);
|
||||
buttons2Height = ::paintButtons(0, 0, 0, PictureViewerButtons2Count, PictureViewerButtons2, 0, 0, "", false, COL_MENUFOOT_TEXT, NULL, 0, false);
|
||||
footerHeight = buttons1Height + buttons2Height;
|
||||
|
||||
listmaxshow = (height-theight-footerHeight)/(fheight);
|
||||
@@ -233,6 +232,8 @@ int CPictureViewerGui::exec(CMenuTarget* parent, const std::string & actionKey)
|
||||
|
||||
// Restore last mode
|
||||
CNeutrinoApp::getInstance()->handleMsg( NeutrinoMessages::CHANGEMODE , m_LastMode );
|
||||
if (m_LastMode == NeutrinoMessages::mode_ts)
|
||||
videoDecoder->setBlank(false);
|
||||
|
||||
// always exit all
|
||||
return menu_return::RETURN_REPAINT;
|
||||
@@ -259,7 +260,7 @@ int CPictureViewerGui::show()
|
||||
m_currentTitle = m_audioPlayer->getAudioPlayerM_current();
|
||||
|
||||
CAudioMute::getInstance()->enableMuteIcon(false);
|
||||
InfoClock->enableInfoClock(false);
|
||||
CInfoClock::getInstance()->enableInfoClock(false);
|
||||
|
||||
while (loop)
|
||||
{
|
||||
@@ -632,7 +633,7 @@ int CPictureViewerGui::show()
|
||||
loop = false;
|
||||
g_RCInput->postMsg(msg, data);
|
||||
}
|
||||
else if ((msg == CRCInput::RC_sat) || (msg == CRCInput::RC_favorites)) {
|
||||
else if ((msg == CRCInput::RC_sat) || (msg == CRCInput::RC_favorites) || (msg == CRCInput::RC_www)) {
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -645,7 +646,7 @@ int CPictureViewerGui::show()
|
||||
hide();
|
||||
|
||||
CAudioMute::getInstance()->enableMuteIcon(true);
|
||||
InfoClock->enableInfoClock(true);
|
||||
CInfoClock::getInstance()->enableInfoClock(true);
|
||||
|
||||
return(res);
|
||||
}
|
||||
@@ -727,7 +728,7 @@ void CPictureViewerGui::paintFoot()
|
||||
else
|
||||
PictureViewerButtons2[0].locale = LOCALE_PICTUREVIEWER_SORTORDER_DATE;
|
||||
|
||||
frameBuffer->paintBoxRel(x, y + (height - footerHeight), width, footerHeight, COL_INFOBAR_SHADOW_PLUS_1, RADIUS_LARGE, CORNER_BOTTOM);
|
||||
frameBuffer->paintBoxRel(x, y + (height - footerHeight), width, footerHeight, COL_MENUFOOT_PLUS_0, RADIUS_LARGE, CORNER_BOTTOM);
|
||||
|
||||
if (!playlist.empty())
|
||||
{
|
||||
@@ -760,8 +761,11 @@ void CPictureViewerGui::paint()
|
||||
int sb = fheight* listmaxshow;
|
||||
frameBuffer->paintBoxRel(x+ width- 15,ypos, 15, sb, COL_MENUCONTENT_PLUS_1);
|
||||
|
||||
int sbc= ((playlist.size()- 1)/ listmaxshow)+ 1;
|
||||
int sbs= (selected/listmaxshow);
|
||||
unsigned int tmp_max = listmaxshow;
|
||||
if(!tmp_max)
|
||||
tmp_max = 1;
|
||||
int sbc= ((playlist.size()- 1)/ tmp_max)+ 1;
|
||||
int sbs= (selected/tmp_max);
|
||||
if (sbc < 1)
|
||||
sbc = 1;
|
||||
|
||||
|
Reference in New Issue
Block a user