mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
osd resolution: Add 'mode' to osd_resolution_struct_t
- Use COsdSetup::OSDMODE_XXX enums to identify various resolutions
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