mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 02:41:12 +02:00
framebuffer: add optional fallback handlings for showFrame() methode
Origin commit data
------------------
Branch: ni/coolstream
Commit: c6423da903
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-03-12 (Tue, 12 Mar 2019)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -266,7 +266,15 @@ class CFrameBuffer : public sigc::trackable
|
||||
void RestoreScreen(int x, int y, int dx, int dy, fb_pixel_t * const memp);
|
||||
|
||||
void Clear();
|
||||
bool showFrame(const std::string & filename, bool fallback = false);
|
||||
|
||||
enum
|
||||
{
|
||||
SHOW_FRAME_FALLBACK_MODE_OFF = 0,
|
||||
SHOW_FRAME_FALLBACK_MODE_IMAGE = 1,
|
||||
SHOW_FRAME_FALLBACK_MODE_BLACKSCREEN = 2,
|
||||
SHOW_FRAME_FALLBACK_MODE_CALLBACK = 4
|
||||
};
|
||||
bool showFrame(const std::string & filename, int fallback_mode = SHOW_FRAME_FALLBACK_MODE_OFF);
|
||||
void stopFrame();
|
||||
bool loadBackgroundPic(const std::string & filename, bool show = true);
|
||||
bool Lock(void);
|
||||
@@ -339,6 +347,7 @@ class CFrameBuffer : public sigc::trackable
|
||||
void doPaintMuteIcon(bool mode) { do_paint_mute_icon = mode; }
|
||||
void blit(void) {}
|
||||
sigc::signal<void> OnAfterSetPallette;
|
||||
sigc::signal<void> OnFallbackShowFrame;
|
||||
const char *fb_name;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user