mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
revert 8919d0aba0
use an easier solution, based up neutrino-mp
Origin commit data
------------------
Branch: ni/coolstream
Commit: bcf4e4fbf9
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-01-26 (Sun, 26 Jan 2014)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -64,6 +64,7 @@
|
||||
#include <gui/widget/stringinput.h>
|
||||
#include <driver/screen_max.h>
|
||||
|
||||
|
||||
#include <system/settings.h>
|
||||
|
||||
#include <algorithm>
|
||||
@@ -757,13 +758,11 @@ void CPictureViewerGui::paint()
|
||||
frameBuffer->paintBoxRel(x+ width- 15,ypos, 15, sb, COL_MENUCONTENT_PLUS_1);
|
||||
|
||||
int sbc= ((playlist.size()- 1)/ listmaxshow)+ 1;
|
||||
int sbs= (selected/listmaxshow);
|
||||
if (sbc < 1)
|
||||
sbc = 1;
|
||||
|
||||
int sbh = ((sb - 4) * 1024) / sbc;
|
||||
int sbs= (selected/listmaxshow);
|
||||
|
||||
frameBuffer->paintBoxRel(x+width-13, ypos+2+(sbs*sbh)/1024, 11, sbh/1024, COL_MENUCONTENT_PLUS_3);
|
||||
frameBuffer->paintBoxRel(x+ width- 13, ypos+ 2+ sbs * (sb-4)/sbc, 11, (sb-4)/sbc, COL_MENUCONTENT_PLUS_3);
|
||||
|
||||
paintFoot();
|
||||
paintInfo();
|
||||
|
Reference in New Issue
Block a user