Add quick resume
This commit is contained in:
@@ -16,8 +16,8 @@ struct BookOverlayInfo {
|
||||
|
||||
class SleepActivity final : public Activity {
|
||||
public:
|
||||
explicit SleepActivity(GfxRenderer& renderer, MappedInputManager& mappedInput)
|
||||
: Activity("Sleep", renderer, mappedInput) {}
|
||||
explicit SleepActivity(GfxRenderer& renderer, MappedInputManager& mappedInput, bool fromTimeout = false)
|
||||
: Activity("Sleep", renderer, mappedInput), fromTimeout(fromTimeout) {}
|
||||
void onEnter() override;
|
||||
|
||||
private:
|
||||
@@ -28,5 +28,9 @@ class SleepActivity final : public Activity {
|
||||
bool topAlignForCoverFit = false) const;
|
||||
void renderBlankSleepScreen() const;
|
||||
void renderOverlaySleepScreen() const;
|
||||
// Quick Resume: leaves the framebuffer (reader page) intact and overlays a small moon icon.
|
||||
void renderLastScreenSleepScreen() const;
|
||||
BookOverlayInfo getBookOverlayInfo(const std::string& bookPath) const;
|
||||
|
||||
const bool fromTimeout = false;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user