mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
Merge branch 'pu/fb-setmode' of https://github.com/tuxbox-neutrino/gui-neutrino into ni/tuxbox
Conflicts:
src/neutrino.h
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7829247fe8
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-02-28 (Tue, 28 Feb 2017)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -46,6 +46,7 @@
|
||||
|
||||
#include <gui/audiomute.h>
|
||||
#include <gui/color.h>
|
||||
#include <gui/osd_helpers.h>
|
||||
#include <gui/pictureviewer.h>
|
||||
#include <system/debug.h>
|
||||
#include <global.h>
|
||||
@@ -367,9 +368,22 @@ void CFrameBuffer::setOsdResolutions()
|
||||
res.xRes = 1280;
|
||||
res.yRes = 720;
|
||||
res.bpp = 32;
|
||||
res.mode = OSDMODE_720;
|
||||
osd_resolutions.push_back(res);
|
||||
}
|
||||
|
||||
size_t CFrameBuffer::getIndexOsdResolution(uint32_t mode)
|
||||
{
|
||||
if (osd_resolutions.size() == 1)
|
||||
return 0;
|
||||
|
||||
for (size_t i = 0; i < osd_resolutions.size(); i++) {
|
||||
if (osd_resolutions[i].mode == mode)
|
||||
return i;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
#if 0
|
||||
//never used
|
||||
void CFrameBuffer::setTransparency( int /*tr*/ )
|
||||
|
Reference in New Issue
Block a user