mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
osd resolution: Add 'mode' to osd_resolution_struct_t
- Use COsdSetup::OSDMODE_XXX enums to identify various resolutions
Origin commit data
------------------
Commit: 653e574937
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-02-28 (Tue, 28 Feb 2017)
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>
|
||||
@@ -362,9 +363,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